Kafka Document
Kafka Document
bin\windows\zookeeper-server-start.bat config\zookeeper.properties
Run Kafka:
bin\windows\kafka-server-start.bat config\server.properties
Create topic:
bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --create --topic
java-test-topic --partitions 3 --replication-factor 1
Detail/Describe topic:
bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --describe --topic
java-test-topic
Start consumer:
bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic
java-test-topic --from-beginning
Start producer:
bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic java-
test-topic