Skip to content

Instantly share code, notes, and snippets.

@prashanth-g
Last active August 16, 2019 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prashanth-g/9389e1c7fae77a6d7238eb2e3937625b to your computer and use it in GitHub Desktop.
Save prashanth-g/9389e1c7fae77a6d7238eb2e3937625b to your computer and use it in GitHub Desktop.
Frequent Kafka Commands in Windows
Kafka commands in windows
Go to Kafka directory
Start Kafka
.\bin\windows\kafka-server-start.bat .\config\server.properties
List Topics
.\bin\windows\kafka-topics.bat --zookeeper localhost:2181 --list
Consume/Read Messages
.\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic demo-topic
Produce
.\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic test
Consume from beginning
.\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test --from-beginning
Start Kafka connect
.\bin\windows\connect-standalone.bat .\config\connect-standalone.properties .\config\connect-file-source.properties .\config\connect-file-sink.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment