No snapshot found, but log entries. Something broken!" -Zookeeper


I am using Apache Kafka 2.4.0 (2.11) and have been unable to start Zookeeper after forcibly terminating the process. I am getting the following error:

[2020-01-11 11:12:43,783] ERROR Unexpected exception, exiting abnormally (org.apache.zookeeper.server.ZooKeeperServerMain) No snapshot found, but there are log entries. Something is broken!
    at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(
    at org.apache.zookeeper.server.ZKDatabase.loadDataBase(
    at org.apache.zookeeper.server.ZooKeeperServer.loadData(
    at org.apache.zookeeper.server.ZooKeeperServer.startdata(
    at org.apache.zookeeper.server.NIOServerCnxnFactory.startup(
    at org.apache.zookeeper.server.ServerCnxnFactory.startup(
    at org.apache.zookeeper.server.ZooKeeperServerMain.runFromConfig(
    at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(
    at org.apache.zookeeper.server.ZooKeeperServerMain.main(
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(

I have searched for this problem and found ZOOKEEPER-3513 which may or may not explain the issue. I have tried deleting the Kafka/Zookeeper directory and downloading it again from scratch, but the problem persists.

Can anyone suggest a solution?

You can try deleting the Zookeeper data directory manually and then restarting it. The data directory is usually located at /tmp/zookeeper or /var/lib/zookeeper. Stop Zookeeper, delete the data directory and then restart it. This should allow Zookeeper to create new snapshot and log files.