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

 

posted on 2019-03-18 16:29  BingMangoTree  阅读(103)  评论(0编辑  收藏  举报

导航