I'm learning about Microservice Architecture these days and I need to run Kafka to follow some tutorials. However, zookeeper-server-start on cmd which is the first step for running up Kafka doesn't work for me. It says 'the syntax of the command is incorrect'
I followed process below
download kafka and extarct (https://kafka.apache.org/downloads - kafka_2.11-2.1.0.tgz (binary download))
open cmd and write command
These are what I've tried so far (at kafka directory)
- bin\windows\zookeeper-server-start.bat zookeeper.properties
- .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
- \bin\windows\zookeeper-server-start.bat \config\zookeeper.properties
- zookeeper-server-start.bat ../../config/zookeeper.properties
and so on... plus, kafka directory is not too long to cause the error.(C:\kafka)
.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
before, and it works fine for me. Please show the entire contents of your CMD and the full error – CosetteC:\Users\myname\kafka
and the problem is gone – Divulsion