Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Couldn't create /yarn-leader-election

Highlighted

Couldn't create /yarn-leader-election

Expert Contributor

I made some changes in my cluster and I set up Kerberos, after restarted all services, the Resource manager would not start, this is what I have in My log file:

Service org.apache.hadoop.yarn.server.resourcemanager.EmbeddedElectorService failed in state INITED; cause: java.io.IOException: Couldn't create /yarn-leader-election

I try to understand what going wrong. I found this question that is similar to mine: https://community.hortonworks.com/questions/71752/resourcemanagersha-dont-start.html

BTW, I have my Resource manager installed on 2 masters nodes.

How could I fix this Problem

any suggestion would be greatly appreciated

3 REPLIES 3

Re: Couldn't create /yarn-leader-election

Super Collaborator

Did you check the ACL as mentioned in the other question?

/usr/hdp/current/zookeeper/bin/zkCli.sh -server 127.0.0.1:2181
[zkshell] getAcl /

Re: Couldn't create /yarn-leader-election

Expert Contributor

@Harald Berghoff

Yes I did, and I have "cdrwa"

but I could not to setAcl to "r"

Re: Couldn't create /yarn-leader-election

Super Collaborator

the 'cdrwa' permission should be fine, 'r' is readonly. Please check if the path /yarn-leader-election exists:

[zkshell] ls /yarn-leader-election
[zkshell] getAcl /yarn-leader-election

and if it exists, you might simply try to delete the zookeeper pat and try a restart of yarn:

[zkshell] delete /yarn-leader-election

if the path does not exist, or yarn doesn't start even after deleting it, we will have to get deeper.