赞
踩
CDH5.15.1开启kerberos后Nodemanager死活起不来。报错信息如下
- 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
- org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed to initialize container executor
- at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:269)
- at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
- at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:562)
- at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:609)
- 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, >权限不够
- at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
- at org.apache.hadoop.util.Shell.runCommand(Shell.java:551)
- at org.apache.hadoop.util.Shell.run(Shell.java:507)
- at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:789)
- at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.init(LinuxContainerExecutor.java:193)
- at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:267)
- ... 3 more
- Caused by: java.io.IOException: error=13, 权限不够
- at java.lang.UNIXProcess.forkAndExec(Native Method)
- at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
- at java.lang.ProcessImpl.start(ProcessImpl.java:134)
- at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
- ... 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
报错信息变了,变成
- 2020-05-11 16:33:36,772 WARN org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor: Exit code from container executor initialization is : 24
- ExitCodeException exitCode=24: Invalid conf file provided : /etc/hadoop/conf.cloudera.yarn/container-executor.cfg
-
- at org.apache.hadoop.util.Shell.runCommand(Shell.java:604)
- at org.apache.hadoop.util.Shell.run(Shell.java:507)
- at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:789)
- at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.init(LinuxContainerExecutor.java:193)
- at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:267)
- at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
- at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:562)
- at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:609)
- 2020-05-11 16:33:36,779 INFO org.apache.hadoop.yarn.server.nodemanager.ContainerExecutor:
查看/etc/hadoop/conf.cloudera.yarn/container-executor.cfg
- [root@hadoop006 ]# cat /etc/hadoop/conf.cloudera.yarn/container-executor.cfg
- yarn.nodemanager.linux-container-executor.group=yarn
- min.user.id=1000
- allowed.system.users=nobody,impala,hive,llama,hbase
- 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成功起来
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。