您好,登錄后才能下訂單哦!
昨天搭建了一套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
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。