Windows Kafka configuration > startup tutorial


Windows Kafka startup tutorial

Modification And log.dirs

Enter Kafka directory, create new folder Kafka logs and folder ZK dir, enter config directory, open


Find datadirs and change to


Start zookeeper

Use PowerShell or CMD or git bash to open it to the directory where Kafka is installed. Paste the command and execute it

bin/windows/zookeeper-server-start.bat config/

Start Kafka

Re open a PowerShell or CMD or git bash again, and CD it to Kafka’s installation directory. Type in the command.

bin/windows/kafka-server-start.bat    config/

Start up complete

Create topic

Create the topic of test

bin/ --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic merchants-template

View topic

bin/windows/kafka-topics.bat --list --zookeeper localhost:2181

Start producers

bin/windows/kafka-console-producer.bat --broker-list localhost:9092 --topic merchants-template

Creating consumers

bin/windows/kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic merchants-template --from-beginning

If you are nameless, concentrate on practicing sword!
Like friends can leave your praise!