1. 程式人生 > >ZKFC服務異常:Parent znode does not exist.

ZKFC服務異常:Parent znode does not exist.

ado blog 天發 sta 信息 min .sh mon node

昨天搭建了一套hadoop集群,今天發現兩個namenode的zkfc服務起不來,在zkfc日誌中發現如下所示的信息:

Unable to start failover controller. Parent znode does not exist.


./bin/zkCli.sh -server master1

ls /

沒有看到/hadoop-ha


解決方法:

進入hadoop namenode服務器

./bin/hdfs zkfc -formatZK


在兩個namenode節點上啟動zkfc服務

./sbin/hadoop-daemon.sh start zkfc


查看master1節點狀態

./bin/hdfs haadmin -getServiceState master1

active


actice namenode節點轉移

./bin/hdfs haadmin -failover master1 master2


查看是否轉移

./bin/hdfs haadmin -getServiceState master1

standby


./bin/hdfs haadmin -getServiceState master2

active


參考:

https://blog.csdn.net/houzhizhen/article/details/44099825


ZKFC服務異常:Parent znode does not exist.