#查看list
./kafka-topics.sh --zookeeper node002:2181,node003:2181,node004:2181 --list
#查看topic
./kafka-topics.sh --describe --zookeeper node002:2181,node003:2181,node004:2181 --topic t729
##创建topic
./kafka-topics.sh --zookeeper node002:2181,node003:2181,node004:2181 --create --topic t729 --partition 3 --replication-factor 3
#消费者
./kafka-console-consumer.sh --bootstrap-server node002:9092,node003:9092,node004:9092 --topic testTopic
#查看所有消费者组
./kafka-consumer-groups.sh --bootstrap-server node001:9092,node003:9092,node004:9092 --list
#查看消费者消费的offset位置信息
./kafka-consumer-groups.sh --bootstrap-server node001:9092,node003:9092,node004:9092 --describe --group console-consumer-52546
kafka2.11相关操作命令
最新推荐文章于 2022-03-23 15:52:07 发布