kafka : A broker is already registered on the path /brokers/ids/1006. This proba

来源:互联网 发布:下载qq软件2016 编辑:程序博客网 时间:2024/06/05 18:03

集群环境: ambari 

kafka节点无故挂掉 zk 无异常

查看kafka日志:

错误:

 java.lang.RuntimeException: A broker is already registered on the path /brokers/ids/1006. This probably indicates that you either have configured a brokerid that is already in use, or else you have shutdown this broker and restarted it faster than the zookeeper timeout so it appears to be re-registering. 

此原因是broker.id在各个节点一致的问题


但是在server.properties上面是没有这个broker.id

解决方法:

查看server.properties上面的log.dir,进入该配置的目标目录,

ls


编辑meta.properties


将各个节点的broker.id修改成不同的值,重新启动kafka

问题解决



阅读全文
0 0