当前位置:   article > 正文

使用root配置的hadoop启动时报错

starting namenodes on [master] error: attempting to operate on hdfs namenode

一、报错信息:

  Starting namenodes on [master]

        ERROR: Attempting to operate on hdfs namenode as root
        
        ERROR: but there is no HDFS_NAMENODE_USER defined. Aborting operation.
        
        Starting datanodes
        ERROR: Attempting to operate on hdfs datanode as root
        
        ERROR: but there is no HDFS_DATANODE_USER defined. Aborting operation.
        Starting secondary namenodes [slave1]
        ERROR: Attempting to operate on hdfs secondarynamenode as root
        ERROR: but there is no HDFS_SECONDARYNAMENODE_USER defined. Aborting operation.
二、解决办法
在/hadoop/sbin路径下: 
start-dfs.sh,stop-dfs.sh两个文件顶部添加以下参数

HDFS_DATANODE_U

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

闽ICP备14008679号