Created
December 8, 2012 19:40
-
-
Save develash/4241593 to your computer and use it in GitHub Desktop.
hadoop 1.1.1 setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hdfs-site.xml | |
# <property> | |
# <name>dfs.replication</name> | |
# <value>1</value> | |
# </property> | |
# core-site.xml | |
#<property> | |
# <name>hadoop.tmp.dir</name> | |
# <value>/opt/hadoop-1.1.1/tmp</value> | |
# <description>A base for other temporary directories.</description> | |
#</property> | |
#<property> | |
# <name>fs.default.name</name> | |
# <value>hdfs://localhost:9000</value> | |
# </property> | |
# mapred-site.xml | |
#<property> | |
# <name>mapred.job.tracker</name> | |
# <value>localhost:9001</value> | |
# </property> | |
# hadoop-env.sh | |
# export JAVA_HOME=/opt/jdk1.6.0_35 | |
bin/hadoop namenode -format | |
bin/start-dfs.sh | |
bin/start-mapred.sh | |
mkdir playground | |
cd playground | |
mkdir playground_classes | |
javac -cp ../hadoop-core-1.1.1.jar:../lib/commons-cli-1.2.jar -d playground_classes WordCount.java | |
jar -cvf WordCount.jar -C playground_classes/ . | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment