天道不一定酬所有勤
但是,天道只酬勤

kafka报错:The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.

报错:

ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID zLg5ACOYRyWEjSIMfwF5fA doesn't match stored clusterId Some(ca5Ypdz5Sc2ZJX5aMh2HFw) 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)

解决方案:在当前kafka目录下

1.删掉logs下的所有文件。2.删除tmp下的所有文件。然后重新启动kafka

未经允许不得转载:java技术小栈 » kafka报错:The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
分享到

评论 抢沙发