Skip to content

Instantly share code, notes, and snippets.

@bugcy013
Forked from develash/hadoop_1.1.1_setup.sh
Created January 8, 2013 14:48
Show Gist options
  • Save bugcy013/4484304 to your computer and use it in GitHub Desktop.
Save bugcy013/4484304 to your computer and use it in GitHub Desktop.
# 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