Ambari启动ZKFailoverController失败了,输入tail -f -n 100 hadoop-hdfs-zkfc-master.log
日志中显示:
org.apache.hadoop.ha.ZKFailoverController: Unable to start failover controller. Parent znode does not exist.
Run with -formatZK flag to initialize ZooKeeper.
按照提示,在失败的节点上输入:
hdfs zkfc -formatZK
重启zkfc就行了。
参考https://community.hortonworks.com/questions/50078/unable-to-start-zkfailovercontroller.html
本文介绍了解决Ambari启动ZKFailoverController失败的问题,通过日志定位到Parent znodedoes not exist错误,并给出了使用hdfszkfc-formatZK命令初始化ZooKeeper的具体步骤。
872

被折叠的 条评论
为什么被折叠?



