Hadoop高可用集群格式化zkfc报错java.lang.IllegalArgumentException: Missing required configuration 'ha.zookeeper.quorum' for ZooKeeper quorum
时间: 2024-05-29 17:12:10 浏览: 204
这个错误提示表明在格式化zkfc时缺少必要的配置项ha.zookeeper.quorum,即ZooKeeper quorum的配置。
解决方法如下:
1. 检查hdfs-site.xml配置文件中是否正确配置了ha.zookeeper.quorum属性。例如:
<property>
<name>ha.zookeeper.quorum</name>
<value>zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181</value>
<description>Comma separated list of ZooKeeper quorum servers</description>
</property>
2. 检查ZooKeeper服务是否正常运行,并且集群中的所有节点都能够访问ZooKeeper。
3. 如果以上两步都没有问题,可以尝试重新启动Hadoop集群,并再次格式化zkfc。
如果问题仍然存在,可以查看更详细的日志信息,确定具体的错误原因。
阅读全文
相关推荐














