kafka启动异常InconsistentClusterIdException
生活随笔
收集整理的這篇文章主要介紹了
kafka启动异常InconsistentClusterIdException
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
異常信息
[2021-05-03 19:14:28,840] INFO Updated cache from existing <empty> to latest FinalizedFeaturesAndEpoch(features=Features{}, epoch=0). (kafka.server.FinalizedFeatureCache) [2021-05-03 19:14:28,855] INFO Cluster ID = I9TxciNjQiKV48quVZP2yw (kafka.server.KafkaServer) [2021-05-03 19:14:28,927] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer) kafka.common.InconsistentClusterIdException: The Cluster ID I9TxciNjQiKV48quVZP2yw doesn't match stored clusterId Some(1aJOmeJITIygVlghQGApxA) 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.Kafka$.main(Kafka.scala:109)at kafka.Kafka.main(Kafka.scala) [2021-05-03 19:14:28,985] INFO shutting down (kafka.server.KafkaServer) [2021-05-03 19:14:28,990] INFO [feature-zk-node-event-process-thread]: Shutting down (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)解決方案
1、刪除kafka 日志目錄下meta.properties文件
2、修改kafka 配置文件中 server.properties 日志目錄
3、問題分析
當kafka異常關閉時,日志記錄就會出現異常,會把當時的情況記錄到meta.properties文件中,重新啟動時此文件會對啟動造成影響。
總結
以上是生活随笔為你收集整理的kafka启动异常InconsistentClusterIdException的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 谷歌大脑新优化器VeLO火了!让AI自己
- 下一篇: VC驿站黑客编程(关机,重新启动,注销)