问题描述:
在Zookeeper服务已经启动的前提下,Kafka启动失败。
The Cluster ID yKfsjtowTyu1zHuKkInesw doesn’t match stored clusterId Some(finN2zUTRWaXMomXCknRew) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
解决方案:
将log.dir对应的目录下的文件删除,重新启动。
参考:
- https://zhuanlan.zhihu.com/p/267329485