获取localhost:mkdir:无法创建目录“//logs”:权限被拒绝

eh57zj3b  于 2021-05-31  发布在  Hadoop
关注(0)|答案(0)|浏览(314)

我已经安装了一个全新的hadoop2.9安装程序,一切看起来都很好。然而,只有一个错误,我无法通过。当我执行命令时
开始-dfs.sh
我得到以下错误:

localhost: mkdir: cannot create directory ‘//logs’: Permission denied
localhost: chown: cannot access '//logs': No such file or directory
localhost: starting namenode, logging to //logs/hadoop-amitesh-namenode-amitesh-VirtualBox.out
localhost: /usr/local/hadoop/hadoop-2.9.0/sbin/hadoop-daemon.sh: line 159: //logs/hadoop-amitesh-namenode-amitesh-VirtualBox.out: No such file or directory
localhost: head: cannot open '//logs/hadoop-amitesh-namenode-amitesh-VirtualBox.out' for reading: No such file or directory
localhost: /usr/local/hadoop/hadoop-2.9.0/sbin/hadoop-daemon.sh: line 177: //logs/hadoop-amitesh-namenode-amitesh-VirtualBox.out: No such file or directory
localhost: /usr/local/hadoop/hadoop-2.9.0/sbin/hadoop-daemon.sh: line 178: //logs/hadoop-amitesh-namenode-amitesh-VirtualBox.out: No such file or directory

有两个观察结果:

1)The error says //logs. However, ideally the path should had been /usr/local/hadoop/hadoop-2.9.0. Not sure about it

2) By being sudo, I gave chown -R amitesh:amitesh hadoop.
  However, the top 2 directories "usr" and "local" still has root ownership:group.

有什么建议吗?我确实看到了其他一些关于stackoverflow的文章,但它们对我的案例没有帮助。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题