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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ZKFC服务异常:Parent znode does not exist.相关的知识,希望对你有一定的参考价值。

昨天搭建了一套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.的主要内容,如果未能解决你的问题,请参考以下文章

集群启用Kerberos后对Zookeeper的Znode操作异常分析

Windchill 无法启动,服务器嵌套异常ORA-12505, TNS:listener does not currently know of SID given...

异常ERROR: Can't get master address from ZooKeeper; znode data == null

ZooKeeper的注意事项

Dynamics 365 Picklist option with value that has the parent OptionSet with id does not exist

C#中 打开Docx文件报错 The associated COM server does not support ActiveX Document embedding