码迷,mamicode.com
首页 > 其他好文 > 详细

ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)

时间:2020-07-04 15:27:07      阅读:53      评论:0      收藏:0      [点我收藏+]

标签:serve   err   -o   join   文件夹   scala   meta   shutdown   broker   

启动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一致

ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)

标签:serve   err   -o   join   文件夹   scala   meta   shutdown   broker   

原文地址:https://www.cnblogs.com/rhgaiymm/p/13234748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!