kafka查看topic和消息内容命令

1、查询topic,进入kafka目录:
bin/kafka-topics.sh --list --zookeeper localhost:2181
 
2、查询topic内容:
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic topicName --from-beginning
posted @ 2019-01-10 00:32  惊艳了时光  阅读(102317)  评论(1编辑  收藏  举报