启动kafka时,kafka进程无法启动,查阅log发现存在如下问题:

2020-07-04 10:44:54,659] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID GG0_OhvsReio3iqC7tMqTg doesn\'t match stored clusterId Some(GIt9-opdTQC_PKpS1GM6Zg) 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的log文件夹中meta.properties的如下配置:

cluster.id=xx
broker.id=xx

cluster.id修改为与log中报错的cluster.id一致

broker.id修改为与server.properties中broker.id一致

版权声明:本文为rhgaiymm原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/rhgaiymm/p/13234748.html