kafka命令笔记

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

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

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

.\bin\windows\kafka-topics.bat --describe --zookeeper 192.168.1.4:2181

.\bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic test

 .\bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test --from-beginning

 

转载于:https://www.cnblogs.com/bigmangotree/p/10552913.html