1

我完全按照hadoop官方网站上的步骤操作,但它总是显示以下错误:

starting namenode, logging to /home/videni/Tools/hadoop-1.0.3/libexec/../logs/hadoop-videni-namenode-videni-Latitude-E6400.out
cat: /usr/lib/hadoop-0.20.2/conf/slaves: No such file or directory
cat: /usr/lib/hadoop-0.20.2/conf/masters: No such file or directory
starting jobtracker, logging to /home/videni/Tools/hadoop-1.0.3/libexec/../logs/hadoop-videni-jobtracker-videni-Latitude-E6400.out
cat: /usr/lib/hadoop-0.20.2/conf/slaves: No such file or directory

现在只想设置一个Standalone Operation,是不是要设置core-site.xml、hdfs-site.xml、mapred-site.xml这三个xml文件?
我检查了日志文件,其中一些说Error: JAVA_HOME is not set,但我将它设置在 hadoop-env.sh 文件中。

4

1 回答 1

0

配置文件取决于 $HADOOP_HOME 路径。确保在 ~/.bashrc 中正确设置了 $HADOOP_HOME。

于 2013-10-25T18:14:46.943 回答