zoukankan      html  css  js  c++  java
  • kafka启动报错Configured broker.id 1 doesn't match stored broker.id 2 in meta.properties

    问题描述:

    更改server.properties后启动kafka集群报错如下,提示brokerid 1不能匹配已经存储的元数据信息brokerid 2

     

    FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)

    kafka.common.InconsistentBrokerIdException: Configured broker.id 1 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).

            at kafka.server.KafkaServer.getBrokerId(KafkaServer.scala:648)

            at kafka.server.KafkaServer.startup(KafkaServer.scala:187)

            at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)

            at kafka.Kafka$.main(Kafka.scala:67)

            at kafka.Kafka.main(Kafka.scala)

    [2016-06-28 15:24:01,081] INFO shutting down (kafka.server.KafkaServer)

    解决办法:

    查看log.dir下的 元数据信息

    [hduser@BDTEST06 kafka_2.10-0.10.0.0]$ vi logs/meta.properties

    在查看 server.properties下的 broker id

    [hduser@BDTEST06 kafka_2.10-0.10.0.0]$ vi config/server.properties

     

    由于刚刚在第一台机器改完配置文件后直接拷贝套另外两台 忘记了更改对应的 broker id

    对应更改完后 再次重启即可

  • 相关阅读:
    IoC容器设计
    乐观锁(Optimistic Lock)
    file,path,uri互相转换
    QGraphicsView的paintEvent双缓存绘画
    简单的串口通信程序控制光源
    Qt--QMdiArea和QMdiSubWindow的基本用法
    Qt--支持鼠标拖动来移动内容的QScrollArea视窗
    快速排序算法记录
    结构体在内存中的对齐规则
    求N个数的数组中第K大的数的值
  • 原文地址:https://www.cnblogs.com/OS-BigData/p/8527369.html
Copyright © 2011-2022 走看看