Support Questions
Find answers, ask questions, and share your expertise

Cloudera Install - Cluster Setup - Start YARN (MR2 Included) Failed to start service.

Cloudera Install - Cluster Setup - Start YARN (MR2 Included) Failed to start service.

New Contributor

Hi Guys,

 

I'm just starting learn CDH in 2 weeks and really new to data lake. I'm in middle create cluster from Cloudera Manager but stuck to start yarn at NM. Error that I get from /var/log/hadoop-yarn/hadoop-cmf-yarn-NODEMANAGER-xxxxx.log.out :

 

 

2020-11-05 16:13:10,925 FATAL org.apache.hadoop.yarn.server.nodemanager.NodeManager: Error starting NodeManager
org.apache.hadoop.service.ServiceStateException: org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: /var/lib/hadoop-yarn/yarn-nm-recovery/yarn-nm-state/LOCK: Permission denied
        at org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:59)
        at org.apache.hadoop.service.AbstractService.init(AbstractService.java:172)
        at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartRecoveryStore(NodeManager.java:181)
        at org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:245)
        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: org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: /var/lib/hadoop-yarn/yarn-nm-recovery/yarn-nm-state/LOCK: Permission denied
        at org.fusesource.leveldbjni.internal.NativeDB.checkStatus(NativeDB.java:200)
        at org.fusesource.leveldbjni.internal.NativeDB.open(NativeDB.java:218)
        at org.fusesource.leveldbjni.JniDBFactory.open(JniDBFactory.java:168)
        at org.apache.hadoop.yarn.server.nodemanager.recovery.NMLeveldbStateStoreService.openDatabase(NMLeveldbStateStoreService.java:950)
        at org.apache.hadoop.yarn.server.nodemanager.recovery.NMLeveldbStateStoreService.initStorage(NMLeveldbStateStoreService.java:937)
        at org.apache.hadoop.yarn.server.nodemanager.recovery.NMStateStoreService.serviceInit(NMStateStoreService.java:210)
        at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        ... 5 more
2020-11-05 16:13:10,936 INFO org.apache.hadoop.yarn.server.nodemanager.NodeManager: SHUTDOWN_MSG:

 

 


I dont know where to check, please guide me.

Regards,

Wan

1 REPLY 1
Highlighted

Re: Cloudera Install - Cluster Setup - Start YARN (MR2 Included) Failed to start service.

New Contributor

I've managed to solve this. Solution is from here https://community.cloudera.com/t5/Support-Questions/CDH5-2-yarn-nm-state-LOCK-Permission-denied/td-p... .

 

Regards,

Hazwan

Don't have an account?