Yogesh Kumar Gupta
Yogesh Kumar Gupta

Reputation: 173

Error while starting zookeeper in win 10 for kafka 2.12

While trying to start zookeeper in the windows 10 OS, I am getting the error \Apache was unexpected at this time

I have used the command with backlash as well as forward slash no use

E:\kafka\kafka_2.12-2.2.0\kafka_2.12-2.2.0\bin\windows>zookeeper-server-start.bat config/zookeeper.properties

\Apache was unexpected at this

enter image description here time.

Upvotes: 0

Views: 556

Answers (2)

Yogesh Kumar Gupta
Yogesh Kumar Gupta

Reputation: 173

I have figured out the issue. The error was coming while setting class path as the bat file did not have administrative privilege.

Upvotes: 0

Peter Wishart
Peter Wishart

Reputation: 12310

You are passing \config... as the properties path, interpreted as E:\config.. so zookeeper won't be finding its configuration properly.

I guess it defaults to looking elsewhere hence the "\Apache was unexpected at this time" error.

Just add the missing dot to the config path, i.e. .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties and it should work.

Upvotes: 0

Related Questions