Hadoop:/usr/lib/hadoop-0.20.2/conf/slaves:没有这样的文件或目录

时间:2012-08-28 07:42:48

标签: hadoop

我按照说法完全按照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

现在,我只想设置一个独立操作,我是否应该设置三个xml文件,例如core-site.xml,hdfs-site.xml,mapred-site.xml?
我检查了日志文件,其中一些人说Error: JAVA_HOME is not set,但我在hadoop-env.sh文件中设置了它。

1 个答案:

答案 0 :(得分:0)

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