Not able to start kafka server from windows command prompt

5,210 views
Skip to first unread message

kalyanic...@gmail.com

unread,
Oct 26, 2017, 5:14:22 PM10/26/17
to Confluent Platform
I have installed kafka and trying to start kafka server from  windows command prompt.

I ran the below script:
.\bin\windows\kafka-server-start .\etc\kafka\server.properties

I am getting the below error:
./etc/kafka/log4j.properties was unexpected at this time.

Please help me how to resolve this

Channel MUSE

unread,
Oct 28, 2017, 2:41:36 PM10/28/17
to Confluent Platform
You should download open source Kafka from Apache web site.

Then you can execute the following command from kafka/bin/windows directory:

zookeeper-server-start.bat ../../config/zookeeper.properties
kafka-server-start.bat ../../config/server.properties

kalyanic...@gmail.com

unread,
Nov 6, 2017, 4:56:33 PM11/6/17
to Confluent Platform
I have installed confluent-oss-3.3.0-2.11 and trying to run 
.\bin\windows\zookeeper-server-start.bat .\etc\kafka\zookeeper.properties

I got the below error:
\bin\windows\../../etc/kafka/log4j.properties was unexpected at this time.

Please help me to resolve this issue.

Thank You

raju...@nextbos.com

unread,
May 30, 2018, 3:08:04 AM5/30/18
to Confluent Platform
I'm also getting the same problem. Did u find the solution for the same?
Please help me how to resolve this issue.

Thank You.

Waseem Hawaldar

unread,
Apr 16, 2019, 12:29:34 AM4/16/19
to Confluent Platform

I was getting same error when I placed kafka downloaded distribution in C:\Program Files (x86). Moving kafka downloaded distribution to some other drive other then c drive worked for me. find below working commands: D:\kafka_2.12-2.2.0\kafka_2.12-2.2.0>bin\windows\zookeeper-server-start.bat config/zookeeper.properties

Kafka was downloaded from it's official site: https://kafka.apache.org/quickstart

Waseem Hawaldar

unread,
Apr 16, 2019, 12:30:02 AM4/16/19
to Confluent Platform

I was getting same error when I placed kafka downloaded distribution in C:\Program Files (x86). Moving kafka downloaded distribution to some other drive other then c drive worked for me. find below working commands: D:\kafka_2.12-2.2.0\kafka_2.12-2.2.0>bin\windows\zookeeper-server-start.bat config/zookeeper.properties

Kafka was downloaded from it's official site: https://kafka.apache.org/quickstart


kumar vikrant

unread,
May 29, 2020, 4:59:09 AM5/29/20
to Confluent Platform

Thanks Waseem . It's working.. but it's weird.
Reply all
Reply to author
Forward
0 new messages