首页 > 其他分享 >kafka报错:The Cluster ID doesn‘t match stored clusterId Some in meta.properties

kafka报错:The Cluster ID doesn‘t match stored clusterId Some in meta.properties

时间:2022-11-23 19:14:11浏览次数:39  
标签:scala KafkaServer Some kafka meta 报错 Kafka properties

kafka启动报错:

ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID kVSgfurUQFGGpHMTBqBPiw doesn't match stored clusterId Some(0Qftv9yBTAmf2iDPSlIk7g) 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:220)
at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
at kafka.Kafka$.main(Kafka.scala:84)
at kafka.Kafka.main(Kafka.scala)

解决办法:

在 server.properties 找到 log.dirs 配置的路径。将该路径下的所有文件删除,或者编辑meta.properties文件修改里面的cluster.id即可
————————————————
版权声明:本文为CSDN博主「wangan094」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/DH2442897094/article/details/120362518

标签:scala,KafkaServer,Some,kafka,meta,报错,Kafka,properties
From: https://www.cnblogs.com/gaoyanbing/p/16919465.html

相关文章