kafka cluster id不匹配问题解决
The Cluster ID xxxxdoesn't match stored clusterId Some(xxxx) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
·
问题
[2023-01-10 08:06:53,018] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException:The Cluster ID Qf54ajhTSWmsjvXI4Q6QWQ doesn't match stored clusterId Some(aAEILTDxQpC_E7UV1RQsbQ) 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.Kafka$.main(Kafka.scala:109)
at kafka.Kafka.main(Kafka.scala)
这是kafka broker加入集群时所记录的cluster id与kafka文件里的id不匹配导致的
解决方式
kafka/config/server.properties中log.dirs配置的目录中的meta.properties中的cluster.id修改为报错信息中The Cluster ID后的id重启即可
更多推荐
已为社区贡献1条内容
所有评论(0)