Hadoop Nodemanager因错误而失败无法获取组信息

时间:2019-06-29 23:12:21

标签: hadoop yarn kerberos nodemanager

我已安装kerberos配置的Apache hadoop(2.8.5)。 NameNode,DataNode和ResourceManager运行正常,但Nodemanager无法启动并出现错误:

Can't get group information for hadoop#configured value of yarn.nodemanager.linux-container-executor.group - Success.

文件权限:

container-executor.cfg: -rw------- 1 root hadoop
container-executor: ---Sr-s--- 1 root hadoop

container-executor.cfg

yarn.nodemanager.local-dirs=/hadoop/data/yarn/local
yarn.nodemanager.linux-container-executor.group=hadoop#configured value 
of yarn.nodemanager.linux-container-executor.group
banned.users=hdfs,yarn,mapred,bin,root#comma separated list of users who can not run applications
min.user.id=1000#Prevent other super-users

1 个答案:

答案 0 :(得分:1)

只需删除评论:

  

#configured值

从配置行:

  

yarn.nodemanager.linux-container-executor.group

container-executor.cfg 文件中

它看起来应该像这样:

yarn.nodemanager.local-dirs=/hadoop/data/yarn/local
yarn.nodemanager.linux-container-executor.group=hadoop
of yarn.nodemanager.linux-container-executor.group
banned.users=hdfs,yarn,mapred,bin,root
min.user.id=1000

此配置文件在空格,注释等方面存在历史问题。