Kafka ERROR Shutdown broker because all log dirs in

错误:

ERROR Shutdown broker because all log dirs in H:\kafka\kafka_2.13-2.7.0\kafkakafka_2.13-2.7.0kafka-logs have failed (kafka.log.LogManager)

该错误是由于删除topics造成的
解决方案:
 首先将kafaka和zookeepter 关闭

打开 zookeepter 的配置zoo.cfg
找到zoo.cfg中的dataDir ,将配置路径中的文件夹删除

然后找到报错中提到的文件夹,我这里是H:\kafka\kafka_2.13-2.7.0\kafkakafka_2.13-2.7.0kafka-logs,将文件夹删除

然后重新启动zookeepter和kafka

你可能感兴趣的:(kafka)