标签:cgi cal zookeeper ica partition loser prope trap rod
一、配置
1、Java配置:JAVA_HOME路径不要有空格
2、下载/kafka_2.11-1.1.0,地址是https://www.apache.org/dyn/closer.cgi?path=/kafka/1.1.0/kafka_2.11-1.1.0.tgz,并解压缩至C:\1000_Study\3000_Java\kafka_2.11-1.1.0
3、配置kafka的path环境
二、命令行测试
cd C:\1000_Study\3000_Java\kafka_2.11-1.1.0
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 --list --zookeeper localhost:2181
bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic demo
bin\windows\kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic demo --from-beginning
三、开发环境
标签:cgi cal zookeeper ica partition loser prope trap rod
原文地址:https://www.cnblogs.com/defineconst/p/11615282.html