Invalid Config, Exiting abnormally when launching zookeper from Kafka tutorial

If you look closely, you'll notice that the command to start Zookeeper is:

bin/zookeeper-server-start.sh config/zookeeper.properties

Using the zookeeper.properties file.

It looks like you copied the command to start Kafka which is using server.properties.


I fixed this on Windows by doing below.

Make sure to specify full paths.

First, go to the bin\windows folder of your kafka installation:

C:\kafka_2.12-2.0.0\bin\windows

Then, run the following command:

.\zookeeper-server-start.bat C:\kafka_2.12-2.0.0\config\zookeeper.properties

When done, you will see the following output:

[2020-07-06 20:25:13,703] INFO Server environment:user.dir=C:\kafka_2.12-2.0.0\bin\windows (org.apache.zookeeper.server.ZooKeeperServer)
[2020-07-06 20:25:13,716] INFO tickTime set to 3000 (org.apache.zookeeper.server.ZooKeeperServer)
[2020-07-06 20:25:13,717] INFO minSessionTimeout set to -1 (org.apache.zookeeper.server.ZooKeeperServer)
[2020-07-06 20:25:13,717] INFO maxSessionTimeout set to -1 (org.apache.zookeeper.server.ZooKeeperServer)
[2020-07-06 20:25:13,787] INFO Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory (org.apache.zookeeper.server.ServerCnxnFactory)
[2020-07-06 20:25:13,791] INFO binding to port 0.0.0.0/0.0.0.0:2181 (org.apache.zookeeper.server.NIOServerCnxnFactory)