Pseudo-Distributed Operation

$ vi hadoop/conf/core-site.xml:
<configuration>
     <property>
         <name>fs.default.name</name>
         <value>hdfs://localhost:9000</value>
     </property>
</configuration>

$ vi hadoop/conf/hdfs-site.xml:
<configuration>
     <property>
         <name>dfs.replication</name>
         <value>1</value>
     </property>
</configuration>

$ vi hadoop/conf/mapred-site.xml:
<configuration>
     <property>
         <name>mapred.job.tracker</name>
         <value>localhost:9001</value>
     </property>
</configuration>

sshの確認
パスフレーズなしでssh接続できるかどうかを確認

$ ssh localhost

If you cannot ssh to localhost without a passphrase, execute the following commands:
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 

分散ファイルシステムをフォーマット

$ hadoop/bin/hadoop namenode -format

省略

11/11/10 23:25:50 INFO common.Storage: Storage directory /tmp/hadoop-hadoop/dfs/name has been successfully formatted.
11/11/10 23:25:50 INFO namenode.NameNode: SHUTDOWN_MSG: 

/tmpになんか吐いとるな。