首页  

因配置错误导致kafka无法启动的案例     所属分类 kafka 浏览量 1064
一台机器安装3个kafka实例

前两个启动ok
第三个启动失败

 ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentBrokerIdException: Configured broker.id 3 doesn't match stored broker.id 2 in meta.properties. If you moved your data, make sure your configured broker.id matches. If you intend to create a new broker, you should remove all data in your data directories (log.dirs).

log.dirs=/home/admin/testbox/kafka/kafka2/kafka-logs
log.dirs 配置错误 ,应该指向 kafka3
log.dirs=/home/admin/testbox/kafka/kafka3/kafka-logs


日志目录 kafka-logs 下的文件 

cleaner-offset-checkpoint
.lock
log-start-offset-checkpoint
meta.properties
recovery-point-offset-checkpoint
replication-offset-checkpoint


meta.properties 内容
version=0
broker.id=3

上一篇     下一篇
80后经典老歌

关于人性的经典表述

少儿英语词汇

菜根谭精彩摘录

dubbo服务调用流程

zookeeper JMX数据解析