日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無先后,達(dá)者為師

網(wǎng)站首頁 編程語言 正文

kafka-報(bào)錯(cuò)kafka.common.InconsistentClusterIdException

作者:與數(shù)據(jù)交流的路上 更新時(shí)間: 2022-10-11 編程語言

一、背景

kafka的物理機(jī)意外宕機(jī),導(dǎo)致kafka啟動(dòng)不起來

二、報(bào)錯(cuò)詳情

[2022-08-09 08:20:42,097] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID 123456 doesn't match stored clusterId Some(456789) 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:235)
	at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
	at kafka.Kafka$.main(Kafka.scala:82)
	at kafka.Kafka.main(Kafka.scala)

三、解決

可以看到報(bào)錯(cuò)比較明顯了,是cluster-id對(duì)不上了,這時(shí)候我們可以修改meta.properties的配置

# meta.properties文件的位置可以根據(jù)server.properties配置文件的log.dirs參數(shù)的值進(jìn)行查找
vim meta.properties

cluster.id=123456

接下來就可以正常啟動(dòng)了

原文鏈接:https://blog.csdn.net/line_on_database/article/details/126264870

欄目分類
最近更新