- download hadoop-0.18.2
$ wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.18.2/hadoop-0.18.2.tar.gz
$ tar zxvf hadoop-0.18.2.tar.gz
- [注意] 需要 JAVA_HOME 環境變數才能執行 hadoop namenode
$ export JAVA_HOME=/usr/lib/jvm/java-6-sun
$ cd hadoop-0.18.2
~/hadoop-0.18.2$ bin/hadoop namenode -format
- conf/hadoop-site.xml
<configuration>
<property>
<name>fs.default.name</name>
<value>localhost:5000</value>
</property>
</configuration>
- 啟動 namenode
~/hadoop-0.18.2$ bin/hadoop namenode
<ctrl-C> and come out
$ bin/start-dfs.sh
- http://localhost:50070/