0

我一直在参考这个链接进行hadoop-1.1.1 安装

我的所有文件和权限都已根据此链接设置。但我收到了这个错误。请帮忙。

hduser@ubuntu:/usr/local/hadoop$ bin/start-all.sh mkdir: 无法创建目录/usr/local/hadoop/libexec/../logs': Permission denied chown: cannot access/usr/local/hadoop/libexec/../logs': 没有这样的文件或目录启动namenode,登录到/usr /local/hadoop/libexec/../logs/hadoop-hduser-namenode-ubuntu.out /usr/local/hadoop/bin/hadoop-daemon.sh:第 136 行:/usr/local/hadoop/libexec/.. /logs/hadoop-hduser-namenode-ubuntu.out:没有这样的文件或目录头:无法打开 /usr/local/hadoop/libexec/../logs/hadoop-hduser-namenode-ubuntu.out' for reading: No such file or directory localhost: mkdir: cannot create directory/usr/local/hadoop/libexec/../logs':权限被拒绝 localhost:chown:无法访问/usr/local/hadoop/libexec/../logs': No such file or directory localhost: starting datanode, logging to /usr/local/hadoop/libexec/../logs/hadoop-hduser-datanode-ubuntu.out localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 136: /usr/local/hadoop/libexec/../logs/hadoop-hduser-datanode-ubuntu.out: No such file or directory localhost: head: cannot open /usr/local/ hadoop/libexec/../logs/hadoop-hduser-datanode-ubuntu.out' 用于阅读:没有这样的文件或目录 localhost:mkdir:无法创建目录/usr/local/hadoop/libexec/../logs': Permission denied localhost: chown: cannot access/usr/local/hadoop/libexec/../logs':没有这样的文件或目录localhost:启动secondarynamenode,登录到/usr/local/hadoop/libexec/../logs/hadoop-hduser-secondarynamenode-ubuntu.out本地主机:/usr/local/hadoop/bin/hadoop-daemon.sh:第 136 行:/usr/local/hadoop/libexec/../logs/hadoop-hduser-secondarynamenode-ubuntu.out:没有这样的文件或目录本地主机:头:无法打开 /usr/local/hadoop/libexec/../logs/hadoop-hduser-secondarynamenode-ubuntu.out' for reading: No such file or directory mkdir: cannot create directory /usr/local/hadoop/libexec/../logs':权限被拒绝chown:无法访问/usr/local/hadoop/libexec/../logs': No such file or directory starting jobtracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-hduser-jobtracker-ubuntu.out /usr/local/hadoop/bin/hadoop-daemon.sh: line 136: /usr/local/hadoop/libexec/../logs/hadoop-hduser-jobtracker-ubuntu.out: No such file or directory head: cannot open /usr/local/hadoop/libexec/../logs/hadoop-hduser-jobtracker-ubuntu.out'阅读:没有这样的文件或目录 localhost:mkdir:无法创建目录/usr/local/hadoop/libexec/../logs': Permission denied localhost: chown: cannot access/usr/local/hadoop/libexec/../logs':没有这样的文件或目录本地主机:启动tasktracker,登录到/usr/local/hadoop/libexec/../logs/hadoop-hduser-tasktracker-ubuntu.out本地主机:/usr/local/hadoop/bin/hadoop-daemon.sh:第 136 行:/usr/local/hadoop/libexec/../logs/hadoop-hduser-tasktracker-ubuntu.out:没有这样的文件或目录本地主机:头:无法打开`/usr/local/hadoop/libexec/../logs/hadoop-hduser-tasktracker-ubuntu.out'进行阅读:没有这样的文件或目录

4

3 回答 3

1

由于错误表明您遇到了权限问题。你需要给 hduser 适当的权限。尝试:

sudo chown -R hduser /usr/local/hadoop/
于 2015-11-30T23:30:15.213 回答
0

以下是 2 条非常有用的建议:

  1. 最好检查一下 .bashrc 文件中是否设置了 HADOOP_HOME 和 JAVA_HOME。有时,不设置这些环境变量也可能在启动 hadoop 集群时导致错误。

  2. 通过查看 /usr/local/hadoop/logs 目录中生成的日志文件来调试错误也很有用。

于 2015-02-08T12:51:16.103 回答
0

运行此命令更改hadoop目录的权限

sudo chmod 750 /app/hadoop

于 2013-03-12T20:09:20.767 回答