下载镜像
1 | Copy//下载zookeeper |
启动镜像
1 | Copy//启动zookeeper |
测试kafka
1 | ./kafka-console-producer.sh --broker-list localhost:9092 --topic sun |
创建查看topic
1 | bin/kafka-topics.sh --zookeeper 192.168.1.106:2181 --create --topic dalianpai --partitions 2 --replication-factor 1 |