kafka and zookeeper

1.zookeeper
bin/zkServer.sh status conf/zoo_sample.cfg

/usr/local/bigdata/kafka/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 3 --topic test1

zookeeper is not a recognized option解决方案
1.bin/kafka-console-consumer.sh --bootstrap-server 127.0.0.1:9092 --topic test1 --from-beginning

2.bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test1

posted @ 2020-12-10 20:22  PGD  阅读(81)  评论(0)    收藏  举报