zookeeper is not a recognized option Option异常

kafka消费者zookeeper is not a recognized option Option异常
如图上所示,原因就是kafka0.9之后不再支持zookeeper的打开方式:
这个是0.9之后的打开方式
/usr/java/kafka_2.12-2.2.0/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test --from-beginning

这个是0.9之前的打开方式
/usr/java/kafka_2.12-2.2.0/bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning

相关文章:

  • 2022-02-24
  • 2022-01-08
  • 2021-08-04
  • 2022-12-23
  • 2021-11-15
  • 2021-08-16
  • 2022-02-16
  • 2022-12-23
猜你喜欢
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案