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


Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐