码迷,mamicode.com
首页 > 其他好文 > 详细

ZKFC服务异常:Parent znode does not exist.

时间:2018-07-12 16:36:18      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:not   ilo   参考   https   .net   and   hadoop   信息   gets   

昨天搭建了一套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.

标签:not   ilo   参考   https   .net   and   hadoop   信息   gets   

原文地址:http://blog.51cto.com/xiaoxiaozhou/2140896

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!