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

Hadoop Nodemanager failing with error Can't get group information

我已经安装了 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

容器-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

只需删除评论:

#configured value

来自配置行:

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

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