完整报错:

(Python3.6) appleyuchi@Laptop:config$ [2020-12-17 14:09:03,904] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
kafka.common.InconsistentBrokerIdException: Configured broker.id 2 doesn't match stored broker.id 3 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).
        at kafka.server.KafkaServer.getOrGenerateBrokerId(KafkaServer.scala:767)
        at kafka.server.KafkaServer.startup(KafkaServer.scala:226)
        at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
        at kafka.Kafka$.main(Kafka.scala:82)
        at kafka.Kafka.main(Kafka.scala)

原因①:

在启动过kafka之后,已经在$KAFKA/logs/meta.properties中生成了broker.id

在修改了该节点的$KAFKA/config/server.properties中的broker.id以后

然后再次启动,就会导致上述问题.

因为此时$KAFKA/config/server.properties中的broker.id与$$KAFKA/logs/meta.properties中的broker.id发生不一致了.

原因②:

$KAFKA/config/server.properties中被改掉了

那么启动kafka以后就会在最新的log.dirs路径中与该路径原有的meta.properties中的broker.id产生冲突

解决方案:

删除$KAFKA/logs整个文件夹,然後重啟kafka集群即可

Configured broker.id 2 doesn‘t match stored broker.id 3 in meta.properties相关推荐

  1. The Cluster ID xxx doesn't match stored clusterId Some(xxx) in meta.properties. The broker is trying

    今天在启动kafka集群的时候报了如下错误 ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.serve ...

  2. kafka报错 The Cluster ID yjMbix25TJ6VpXSNceA72w doesn‘t match stored clusterId Some(yqcsYK4cSJKkhfu6k

    @[TOC](The Cluster ID yjMbix25TJ6VpXSNceA72w doesn't match stored clusterId Some(yqcsYK4cSJKkhfu6kR0 ...

  3. kafka启动失败The Cluster ID *** doesn‘t match stored clusterId Some(***) in meta.properties The broker

    前言: 启动kafka遇到问题,就是应用启动没有进行消费kafka数据导致,应用无数据入库,需要排查下问题: 1.对kafka进行重启设置,添加  startup.sh nohup bin/kafka ...

  4. kafka报错:The Cluster ID doesn‘t match stored clusterId Some in meta.properties

    kafka启动报错: ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServ ...

  5. kafka.common.InconsistentClusterIdException: The Cluster ID doesn‘t match stored clusterId Some()

    一 问题描述 kafka启动失败,报错: [2021-05-10 11:22:43,263] ERROR Fatal error during KafkaServer startup. Prepare ...

  6. kafka.common.InconsistentClusterIdException: The Cluster ID 8ytUwdxNRXqINczxiKozcA doesn‘t match sto

    因为启动中致命的异常而退出kafka [2022-10-13 17:23:48,759] ERROR Exiting Kafka due to fatal exception during start ...

  7. 【问题解决】mybatis 类型不匹配两种解决办法 -Result type not match for select id=“selectUser“ srcType: com.kuang.pojo

    问题描述: Result type not match for select id="selectUser"srcType: com.kuang.pojo.UsertargetTy ...

  8. mysql 当前id前后几个,使用mysql选择id前后的行

    I need to get the IDs around an ID with mySQL. Example: IDs ​​in the table: 2, 4, 5, 9, 11, 15, 19, ...

  9. php设置id递增,php实现雪花算法(ID递增)

    雪花算法简单描述: 最高位是符号位,始终为0,不可用. 41位的时间序列,精确到毫秒级,41位的长度可以使用69年.时间位还有一个很重要的作用是可以根据时间进行排序. 10位的机器标识,10位的长度最 ...

最新文章

  1. RHEL6.3配置Apache服务器(4) 基于用户的访问控制
  2. SpringBoot+webservice
  3. Android之android studio如何把项目分享到github并提修改的代码到Github
  4. 如何成为一名有效的软件工程师
  5. linux系统中怎么复制,linux下如何屏幕拷贝?
  6. sscanf 连续相同编辑符_基于单调栈的滑动窗口法求解“和至少为 K 的最短连续子数组”...
  7. 【Oracle】利用trace文件重建控制文件
  8. 豆瓣关于计算机视觉的书评及介绍
  9. 读《财务就是IT 企业财务信息系统》
  10. 种子文件多服务器,别再问我什么是 BT 种子了!一次性全告诉你
  11. iOS 网页截取长图
  12. ECS架构 Entitas-CSharp学习之路(三)
  13. 懒人神器,IDEA插件之EasyCode,自动生成CRUD代码
  14. Linux磁盘挂载、扩容、删除
  15. 纯干货-17 分布式深度学习原理、算法详细介绍
  16. fedora 14下建立samba服务器
  17. 《幸运大转盘》代码分享
  18. 美团外卖大数据“杀熟”,程序员成了“接锅侠”,简直不讲武德!
  19. 课后作业——Day9
  20. Adobe国际认证证书对职业应聘有用吗?

热门文章

  1. UE4 代理 BindRaw和BindUObject
  2. 涨姿势:Java 异常?尝试自定义异常
  3. php-css外边距
  4. 为现有的表添加自增列id并赋值
  5. arm-linux-ld: cannot find -lgcc,/arm-linux-gnueabi/bin/ld: cannot find crt1.o
  6. python search函数 中文_python使用正则表达式的search()函数实现指定位置搜索功能...
  7. 活跃用户数怎么计算_留存率计算
  8. JQuery中的类选择器
  9. vscode中experimentaldecorators报错
  10. vue-cli简单使用心得