kafka启动异常 A broker is already registered on the path /brokers/ids

java.lang.RuntimeException: A broker is already registered on the path /brokers/ids/102. 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.

翻译: 代理已经在路径/brokers/ids/1上注册。这可能表明您已经配置了一个已经在使用中的代理id,或者您已经关闭了该代理并以更快的速度重新启动了它

解决方案:zkCli.sh进入zookeeper客户端

[zk: localhost:2181(CONNECTED) 4] ls /brokers/ids    
[103, 104]

删除代理id

rmr /brokers/ids

deleteall /broker/ids

参考原文

你可能感兴趣的:(kafka,zookeeper,kafka启动异常,/brokers/ids,A,broker,is,already,registered,on,t)