Last active
August 16, 2019 06:27
-
-
Save prashanth-g/9389e1c7fae77a6d7238eb2e3937625b to your computer and use it in GitHub Desktop.
Frequent Kafka Commands in Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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