Skip to content

Instantly share code, notes, and snippets.

@develash
Created December 8, 2012 19:40
Show Gist options
  • Save develash/4241593 to your computer and use it in GitHub Desktop.
Save develash/4241593 to your computer and use it in GitHub Desktop.
hadoop 1.1.1 setup
# 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