我指的是{{3>} 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' for reading:没有这样的文件或目录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 localhost:/usr/local/hadoop/bin/hadoop-daemon.sh:第136行: /usr/local/hadoop/libexec/../logs/hadoop-hduser-secondarynamenode-ubuntu.out: 没有这样的文件或目录localhost:head:无法打开/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' for reading:没有这样的文件或目录localhost:mkdir:无法创建 目录/usr/local/hadoop/libexec/../logs': Permission denied localhost: chown: cannot access
/ usr / local / hadoop / libexec /../ logs': 没有这样的文件或目录localhost:启动tasktracker,登录到 /usr/local/hadoop/libexec/../logs/hadoop-hduser-tasktracker-ubuntu.out localhost:/usr/local/hadoop/bin/hadoop-daemon.sh:第136行: /usr/local/hadoop/libexec/../logs/hadoop-hduser-tasktracker-ubuntu.out: 没有这样的文件或目录localhost:head:无法打开 `/usr/local/hadoop/libexec/../logs/hadoop-hduser-tasktracker-ubuntu.out” 阅读:没有这样的文件或目录
答案 0 :(得分:1)
由于错误表明您遇到了权限问题。 您需要为hduser提供适当的权限。尝试:
sudo chown -R hduser /usr/local/hadoop/
答案 1 :(得分:0)
运行此命令以更改hadoop目录的权限
sudo chmod 750 / app / hadoop
答案 2 :(得分:0)
以下是2条非常有用的建议:
最好检查是否设置了HADOOP_HOME和JAVA_HOME .bashrc文件。有时,不设置这些环境变量 启动hadoop集群时也可能导致错误。
通过浏览/ usr / local / hadoop / logs目录中生成的日志文件来调试错误也很有用。