我遵循本教程安装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.
2条答案
按热度按时间mjqavswn1#
更改的权限
/home/hdoop
去正确的地方!m3eecexj2#
我根据我没有设置的配置解决了这个链接
JAVA_HOME
在路径内另外,我在中更改hadoop\u opts的值
hadoop-env.sh
如下所示。前后图像