问题描述
启动kafka,报以下错误
ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID x45IDXtATBSpkzosBzB0ag doesn't match stored clusterId Some(-H0G-XN5QoKbmWlZiqPW6g) in meta.
properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
at kafka.server.KafkaServer.startup(KafkaServer.scala:218)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
at kafka.Kafka$.main(Kafka.scala:84)
at kafka.Kafka.main(Kafka.scala)
解决方案:
删掉kafka集群每个节点的logs文件,修改connecting to zookeeper的时间
再重新启动zookeeper集群跟kafka集群

文章描述了在启动Kafka时遇到的InconsistentClusterIdException错误,原因可能是ClusterID不匹配或Zookeeper连接配置错误。解决方法包括删除节点logs文件,更新Zookeeper连接时间和重启相关集群。
6161

被折叠的 条评论
为什么被折叠?



