当前位置:   article > 正文

CDH5.15.1开启kerberos后YARN nodemanager无法启动问题_nodemanager failed in state inited org.apache.hado

nodemanager failed in state inited org.apache.hadoop.yarn.exceptions.yarnrun

CDH5.15.1开启kerberos后Nodemanager死活起不来。报错信息如下

  1. 2020-05-11 15:52:49,488 INFO org.apache.hadoop.service.AbstractService: Service NodeManager failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed to initialize container executor
  2. org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed to initialize container executor
  3. at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:269)
  4. at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
  5. at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:562)
  6. at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:609)
  7. Caused by: java.io.IOException: Cannot run program "/opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/lib/hadoop-yarn/bin/container-executor": error=13, >权限不够
  8. at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
  9. at org.apache.hadoop.util.Shell.runCommand(Shell.java:551)
  10. at org.apache.hadoop.util.Shell.run(Shell.java:507)
  11. at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:789)
  12. at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.init(LinuxContainerExecutor.java:193)
  13. at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:267)
  14. ... 3 more
  15. Caused by: java.io.IOException: error=13, 权限不够
  16. at java.lang.UNIXProcess.forkAndExec(Native Method)
  17. at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
  18. at java.lang.ProcessImpl.start(ProcessImpl.java:134)
  19. at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
  20. ... 8 more

 

经过一番搜索,修改Nodemanager角色节点container-executor文件权限

chmod 6050 /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/lib/hadoop-yarn/bin/container-executor

 

报错信息变了,变成

  1. 2020-05-11 16:33:36,772 WARN org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor: Exit code from container executor initialization is : 24
  2. ExitCodeException exitCode=24: Invalid conf file provided : /etc/hadoop/conf.cloudera.yarn/container-executor.cfg
  3. at org.apache.hadoop.util.Shell.runCommand(Shell.java:604)
  4. at org.apache.hadoop.util.Shell.run(Shell.java:507)
  5. at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:789)
  6. at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.init(LinuxContainerExecutor.java:193)
  7. at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:267)
  8. at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
  9. at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:562)
  10. at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:609)
  11. 2020-05-11 16:33:36,779 INFO org.apache.hadoop.yarn.server.nodemanager.ContainerExecutor:

 

查看/etc/hadoop/conf.cloudera.yarn/container-executor.cfg

  1. [root@hadoop006 ]# cat /etc/hadoop/conf.cloudera.yarn/container-executor.cfg
  2. yarn.nodemanager.linux-container-executor.group=yarn
  3. min.user.id=1000
  4. allowed.system.users=nobody,impala,hive,llama,hbase
  5. banned.users=hdfs,yarn,mapred,bin

原来container-executor文件需要所属组为yarn

chown root:yarn /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/lib/hadoop-yarn/bin/container-executor

Nodemanager成功起来

 

 

 

 

 

 

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

闽ICP备14008679号