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博客

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值