zookeeper is not a recognized option zookeeper参数不支持

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq193423571/article/details/84241251

– zookeeper is not a recognized option主要原因是 Kafka 版本过高,命令不存在


解决方法

  1. 继续使用新版本
./bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning
  1. Kafka更换成老版本,并使用 --zookeeper
	./bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

猜你喜欢

转载自blog.csdn.net/qq193423571/article/details/84241251