kafka windows code example

Example 1: kafka create topic

$ bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092

Example 2: kafka-topics.sh --bootstrap-server multi server

bin/kafka-console-consumer.sh --bootstrap-server localhost:9092,localhost:9093,localhost:9094 --from-beginning --topic my-replicated-topic

Example 3: how to start kafka in windows

.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
.\bin\windows\kafka-server-start.bat .\config\server.properties

Tags:

Misc Example