栏目分类:
子分类:
返回
终身学习网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
终身学习网 > IT > 前沿技术 > 大数据 > 大数据系统

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

转载请注明:文章转载自 www.051e.com
本文地址:http://www.051e.com/it/602215.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 ©2023-2025 051e.com

ICP备案号:京ICP备12030808号