当前位置:   article > 正文

hadoop启动报错: ERROR: Attempting to operate on hdfs namenode as root

error: attempting to operate on hdfs namenode as root

hadoop启动报错: ERROR: Attempting to operate on hdfs namenode as root

解决方案:


写在最前注意:
1、master,slave都需要修改start-dfs.sh,stop-dfs.sh,start-yarn.sh,stop-yarn.sh四个文件
vi  start-dfs.sh

HDFS_DATANODE_USER=root
HDFS_DATANODE_SECURE_USER=hdfs
HDFS_NAMENODE_USER=root
HDFS_SECONDARYNAMENODE_USER=root
HDFS_JOURNALNODE_USER=root
HDFS_ZKFC_USER=root

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/629417
推荐阅读
相关标签
  

闽ICP备14008679号