kafka:The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
2022-10-19 leiting (1952阅读)
标签 软件
kafka报错:
kafka.common.InconsistentClusterIdException: The Cluster ID maJBPe3TQKaMkjbR2HZzKw doesn't match stored clusterId Some(wtu_13-6Qna6GAmqpVSi1w) 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:223)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
at kafka.Kafka$.main(Kafka.scala:82)
at kafka.Kafka.main(Kafka.scala)
解决:
在Kafka的config目录中,打开kafka config属性文件,让server.properties查找具有参数log.dirs=的日志路径目录(log文件),然后转到日志路径目录并在其中找到文件meta.properties。打开文件meta.properties并更新cluster.id=【这个值是error里面有写的】或从日志路径目录中删除此文件或所有日志文件(本人使用),然后重新启动kafka。
最新评论: