kafka常用命令

#查看kafka的所有分组
【0.9版本】
./bin/kafka-consumer-groups.sh --zookeeper localhost:2181 --list
【0.11版本】
./bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list
#查看指定topic下的数据
【0.9版本】
./bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic iot_mqtt_mirror --from-beginning
【0.11版本】
./bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic iot_mqtt_mirror --from-beginning
posted @ 2022-11-20 01:00  peanut。  阅读(32)  评论(0)    收藏  举报