hadoop安装issue:permission denied

zynd9foi  于 2021-05-31  发布在  Hadoop
关注(0)|答案(2)|浏览(431)

我遵循本教程安装hadoop。不幸的是,当我运行 dfs namenode -format 脚本-控制台上打印了以下错误:
但最后我看到这个味精

dfs namenode -format

WARNING: /home/hdoop/hadoop-3.2.1/logs does not exist. Creating.
mkdir: cannot create directory ‘/home/hdoop/hadoop-3.2.1/logs’: Permission denied
ERROR: Unable to create /home/hdoop/hadoop-3.2.1/logs. Aborting.

我跑步的时候也谢谢你

./start-dfs.sh

Starting namenodes on [localhost]
localhost: WARNING: /home/hdoop/hadoop-3.2.1/logs does not exist. Creating.
Starting datanodes
Starting secondary namenodes [blabla]
blabla: Warning: Permanently added 'blabla,192.168.100.10' (ECDSA) to the list of known hosts.
mjqavswn

mjqavswn1#

更改的权限 /home/hdoop 去正确的地方!

m3eecexj

m3eecexj2#

我根据我没有设置的配置解决了这个链接 JAVA_HOME 在路径内

$ which java
$ echo $JAVA_HOME

另外,我在中更改hadoop\u opts的值 hadoop-env.sh 如下所示。

export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/"

前后图像

相关问题