Support Questions

Find answers, ask questions, and share your expertise

Error starting NodeManager

avatar
Explorer

when I am trying to start the nodemanager I am getting 

Caused by: java.io.IOException: Not able to enforce cpu weights; cannot write to cgroup at: /sys/fs/cgroup/cpu,cpuacct

 

4 REPLIES 4

avatar
Explorer

Permission on the directory :
ls -ld cpu,cpuacct
drwxr-xr-x 5 root root 0 Feb 19 20:52 cpu,cpuacct

avatar
Master Collaborator

@Chetankumar  Can you please share complete stack trace of the error

Also confirm cdh/ hdp version

avatar
Explorer

Getting fatal Error on. "org.apache.hadoop.yarn.server.nodemanager.NodeManager"

Error starting NodeManager
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Failed to initialize container executor
at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:251)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:544)
at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:591)
Caused by: java.io.IOException: Not able to enforce cpu weights; cannot write to cgroup at: /sys/fs/cgroup/cpu,cpuacct
at org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler.initializeControllerPaths(CgroupsLCEResourcesHandler.java:502)
at org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler.init(CgroupsLCEResourcesHandler.java:154)
at org.apache.hadoop.yarn.server.nodemanager.util.CgroupsLCEResourcesHandler.init(CgroupsLCEResourcesHandler.java:137)
at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecutor.init(LinuxContainerExecutor.java:215)
at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:249)
... 3 more

 

Version: Hadoop 2.6.0-cdh5.10.2    Cloudera express

avatar
Explorer

We have made changes to Static Service Pools in CM and now it failed to start the node manager. Could you please let me know how can we revert it back to original? This is cloudera express version.
@Scharan