Reputation: 173
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
Upvotes: 0
Views: 556
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
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