Skip to content

Instantly share code, notes, and snippets.

@isaacmg
Last active January 17, 2017 07:04
Show Gist options
  • Save isaacmg/823b9fc3d96edae87ed47405f4bdb5b2 to your computer and use it in GitHub Desktop.
Save isaacmg/823b9fc3d96edae87ed47405f4bdb5b2 to your computer and use it in GitHub Desktop.
Simple gist file describing some command prompts commands for Kafka on Windows

Start zookeeper:

zkserver

Start Kafka

cd (path to kafka) /kafka_2.11-0.10.1.1/

kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test .\bin\windows\kafka-server-start.bat .\config\server.properties

Now create producers/consumers

cd bin/windows kafka-console-producer.bat --broker-list localhost:9092 --topic test kafka-console-consumer.bat --zookeeper localhost:2181 --topic test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment