在ubuntu 12.04lts上安装hadoop时发生start-all.sh错误

lvmkulzt  于 2021-06-03  发布在  Hadoop
关注(0)|答案(3)|浏览(377)

我指的是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 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'读取:没有这样的文件或目录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'阅读:没有这样的文件或目录

r6l8ljro

r6l8ljro1#

错误表明您有权限问题。你需要给hduser适当的权限。尝试:

sudo chown -R hduser /usr/local/hadoop/
falq053o

falq053o2#

下面是两个非常有用的建议:
最好检查hadoop\u home和java\u home是否设置在.bashrc文件中。有时,不设置这些环境变量也可能导致启动hadoop集群时出错。
通过检查/usr/local/hadoop/logs目录中生成的日志文件来调试错误也很有用。

yzxexxkh

yzxexxkh3#

运行此命令更改hadoop目录的权限
sudo chmod 750/应用程序/hadoop

相关问题