Kafka's three most important common script commands

查看topic 列表
kafka-topics.sh --zookeeper 192.168.0.32:2181 --list

Insert picture description here


创建topic
kafka-topics.sh --zookeeper 192.168.0.32:2181 --create --topic topic2 --partitions 2 --replication-factor 1 

Insert picture description here

查看kafka消息进程
kafka-consumer-groups.sh --bootstrap-server 192.168.0.32:9092 --describe --group core-group

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_38305866/article/details/109288103