Kafka - Broker fails because all log dirs have failed
step 1 : point to a new log directory in server.properties file and save the file
log.dirs=C:\Tools\kafka_2.11-2.1.0\kafka-test-logs
step 2 : start the kafka server again
/bin/windows/kafka-server-start.bat /config/server.properties
I had the same kafka behavior but simply renaming or cleaning log directories wouldn't do the trick. And every time I tried to start kakfa it would crash (it was generating back all the logs deleted).
Solution:
- Delete the logs as before.
- Go to ZooKeeper data dir (you find it in \conf\zoo.cfg) and clean it. Restart everything and it should be completely reset.