How can I solve this no such file log error in Kafka quickstart?

Viewed 3060

I'm following (at least trying to) this Kafka quickstart doc Kafka quickstart

Upon executing the Kafka and Zookeeper server starts, they both result in this error:

[0.003s][error][logging] Error opening log file '/c/Users/Manol/Downloads/kafka_2.13-2.7.0/kafka_2.13-2.7.0/bin/../logs/kafkaServer-gc.log': No such file or directory

[0.003s][error][logging] Error opening log file '/c/Users/Manol/downloads/kafka_2.13-2.7.0/kafka_2.13-2.7.0/bin/../logs/zookeeper-gc.log': No such file or directory

I've even tried manually creating these files to confirm they are actually there:

enter image description here

But it made no difference. I have not a single clue of what could cause this error and I'm also not familiar with .sh files so I can't see if there's any problems in those. Does anyone know what could be the problem and maybe even how to fix it? I couldn't find anyone else experiencing this particular issue.

3 Answers

Changing the Java version to 8 solved the problem for me.

Kafka quickstart is intended to use .sh scripts, for windows use .bat scripts.

Here is how I fixed the issue, run following command.

$ bin/windows/zookeeper-server-start.bat config/zookeeper.properties
Related