首先,在之前配置的Kafka环境没有问题,但是可能有一些故障导致Kafka突然从我的进程里面消失了
    image.png
    查了一圈发现Kafka的配置都没有问题,但就是启动不了,然后去看日志
    image.png
    [2021-09-15 18:14:44,550] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
    kafka.common.InconsistentClusterIdException: The Cluster ID 9Oes4nSOTnyesV8BEKdDBw doesn’t match stored clusterId Some(aFVmNaQSQx-C6hAk6egqWw) in meta.properties. The broker is trying to join the wrong cluster. Configured zookeeper.connect may be wrong.
    at kafka.server.KafkaServer.startup(KafkaServer.scala:218)
    at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44)
    at kafka.Kafka$.main(Kafka.scala:84)
    at kafka.Kafka.main(Kafka.scala)

    这一行老醒目了
    一看发现Cluster ID和meta.properties里面的对不上,我直接好家伙
    找到meta.properties文件,还就那个强行同化,给我变。
    image.png
    然后再次启动Kafka
    image.png
    结束,整整花了我一个多小时,属实顶级折磨。