版权声明:本文为博主原创文章,未经博主允许不得转载。https://www.jianshu.com/p/361bcf3b3eb2
hdfs failover controller无法启动,报错:
error zkfailoverController
Unable to start failover controller. Parent zoned does not exist.
Run with -formatZK flag to initialize ZooKeeper.
解决方案:1、cd /opt/cloudera/parcels/CDH/lib/zookeeper/bin/
./zkCli.sh
ls / 查看没有hadoop ha
2、停止hdfs服务,在namenode节点上执行hdfs zkfc -formatZK
3、在两个namenode节点上启动zkfc服务
cd /opt/clodudera/parcels/CDH-6.1.1-1/lib/hadoop/sbin
./hadoop-daemon.sh start zkfc