slaves
修改第一个 vim hadoop-env.sh
# The only required environment variable is JAVA_HOME. All others are
# optional. When running a distributed configuration it is best to
# set JAVA_HOME in this file, so that it is correctly defined on
# Extra Java>
# export HADOOP_CLASSPATH=
# The only required environment variable is JAVA_HOME. All others are
# optional. When running a distributed configuration it is best to
# set JAVA_HOME in this file, so that it is correctly defined on
# remote nodes.
# The java implementation to use. Required.
export JAVA_HOME=/usr/local/jdk
# Extra Java>
# export HADOOP_CLASSPATH=
修改第二个 vim core-site.xml
fs.default.name
hdfs://192.168.1.101:9000
hadoop.tmp.dir
/root/hadoop-1.2.1/tmp
14/03/31 01:21:43 INFO namenode.FSEditLog: closing edit log: position=4, editlog=/tmp/hadoop-root/dfs/name/current/edits
14/03/31 01:21:43 INFO namenode.FSEditLog: close success: truncate to 4, editlog=/tmp/hadoop-root/dfs/name/current/edits
14/03/31 01:21:43 INFO common.Storage: Storage directory /tmp/hadoop-root/dfs/name has been successfully formatted.
14/03/31 01:21:43 INFO namenode.NameNode: SHUTDOWN_MSG: