kafka启动失败

kafka启动失败,第1张

kafka启动失败

ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID 1m798TADRZerLuFBGDS9mw doesn't match stored clusterId Some(8XlbKFlXSE2hSzZ6OX_Rqg) 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-11-23 16:55:08,761] INFO Cluster ID = 1m798TADRZerLuFBGDS9mw (kafka.server.KafkaServer)
[2021-11-23 16:55:08,769] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentClusterIdException: The Cluster ID 1m798TADRZerLuFBGDS9mw doesn't match stored clusterId Some(8XlbKFlXSE2hSzZ6OX_Rqg) 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-11-23 16:55:08,771] INFO shutting down (kafka.server.KafkaServer)
[2021-11-23 16:55:08,774] INFO [feature-zk-node-event-process-thread]: Shutting down (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
[2021-11-23 16:55:08,774] INFO [feature-zk-node-event-process-thread]: Stopped (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
[2021-11-23 16:55:08,775] INFO [feature-zk-node-event-process-thread]: Shutdown completed (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)

 

解决办法是 日志路径

进入kafka文件夹

cat config/server.properties | grep log.dirs

log.dirs=/data/kafka_logs
找到对应的 目录

cd /data/kafka_logs  里面 有个  meta.properties 文件,需要把这个删除或者 重命名下,

然后再次启动 kafka

bin/kafka-server-start.sh -daemon config/server.properties

查看端口号

netstat -nltp | grep 9092

详解

Kafka启动异常之InconsistentClusterIdException_踏雪无痕-CSDN博客

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5608007.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存