Unable to start zookeeper failover controller in HA cluster and tried manually format the ZKFC on console using command(hdfs zkfc -formatZK)

2020-03-26 hadoop

when manually tried to format the ZKFC on console using command(hdfs zkfc -formatZK) getting failed with Couldn't create /hadoop-ha/dev

Any one have an idea about the below exception, your input is much appreciated

please find the logs for reference

20/03/24 16:08:49 ERROR ha.ZKFailoverController: The failover controller encounters runtime error java.io.IOException: Couldn't create /hadoop-ha/dev-xx at org.apache.hadoop.ha.ActiveStandbyElector.ensureParentZNode(ActiveStandbyElector.java:xx1) at org.apache.hadoop.ha.ZKFailoverController.formatZK(ZKFailoverController.java:286) at org.apache.hadoop.ha.ZKFailoverController.doRun(ZKFailoverController.java:216) at org.apache.hadoop.ha.ZKFailoverController.access$000(ZKFailoverController.java:xx) at org.apache.hadoop.ha.ZKFailoverController.run(ZKFailoverController.java:171) at org.apache.hadoop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:195)

Caused by: org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth for /hadoop-ha/dev-xx

at org.apache.zookeeper.KeeperException.create(KeeperException.java:113)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)

Thanks in Advance

Answers

Related