溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

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

發(fā)布時間:2020-06-25 16:00:25 來源:網(wǎng)絡 閱讀:1787 作者:斷臂人 欄目:大數(shù)據(jù)

昨天搭建了一套hadoop集群,今天發(fā)現(xiàn)兩個namenode的zkfc服務起不來,在zkfc日志中發(fā)現(xiàn)如下所示的信息:

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節(jié)點上啟動zkfc服務

./sbin/hadoop-daemon.sh start zkfc


查看master1節(jié)點狀態(tài)

./bin/hdfs haadmin -getServiceState master1

active


actice namenode節(jié)點轉(zhuǎn)移

./bin/hdfs haadmin -failover master1 master2


查看是否轉(zhuǎn)移

./bin/hdfs haadmin -getServiceState master1

standby


./bin/hdfs haadmin -getServiceState master2

active


參考:

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


向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI