安装详述: https://www.jianshu.com/p/596f107e901a
3.0:运行:cd 到: D:Installed_softwareProfessionalkafka_2.10-0.10.0.1 而不是:D:Installed_softwareProfessionalkafka_2.10-0.10.0.1inwindows .inwindowskafka-server-start.bat .configserver.properties inwindowskafka-server-start.bat configserver.properties 4. 创建一个topic: cd D:Installed_softwareProfessionalkafka_2.10-0.10.0.1inwindows kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test 5. 打开一个Producer: cd D:Installed_softwareProfessionalkafka_2.10-0.10.0.1inwindows kafka-console-producer.bat --broker-list localhost:9092 --topic test kafka-console-producer.bat --broker-list localhost:9092 --topic test 6. 打开一个Consumer: cd D:Installed_softwareProfessionalkafka_2.10-0.10.0.1inwindows kafka-console-consumer.bat --zookeeper localhost:2181 --topic test kafka-console-consumer.bat --zookeeper localhost:2181 --topic test