Support Questions

Find answers, ask questions, and share your expertise

Access is denied error while starting KAFKA first time

New Contributor

I am getting following error. I correctly put the path in server.properties, zookeeper.properties and zoo.cfg

cmd>C:\kafka_2.11-2.0.0> .\bin\windows\kafka-server-start.bat .config\server.properties
Access is denied.
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: \logs\server.log (The system cannot find the path specified)

 

 

1 REPLY 1

Explorer

try this: open your cmd: change directory with : cd C:\kafka_2.11-2.0.0 

if you change directory you will do this

C:\kafka_2.11-2.0.0> bin\zookeeper-server-start.bat   config\zookeeper.properties

C:\kafka_2.11-2.0.0> bin\kafka-server-start.bat   config\server.properties

if you don't change directory do this.

>C:\kafka_2.11-2.0.0\bin\zookeper-server-start.bat  C:\kafka_2.11-2.0.0\config\zookeeper.properties

> C:\kafka_2.11-2.0.0\bin\kafka-server-start.bat   C:\kafka_2.11-2.0.0\config\server.properties