赞
踩
kafka-topics.sh --create --partitions 1 --replication-factor 2 --topic test --zookeeper companynode02:2181,companynode03:2181,companynode04:2181
kafka-topics.sh --list --zookeeper companynode02:2181,companynode03:2181,companynode04:2181
kafka-topics.sh --describe --topic test --zookeeper companynode02:2181,companynode03:2181,companynode04:2181
kafka-topics.sh --delete --topic test --zookeeper companynode02:2181,companynode03:2181,companynode04:2181
kafka-console-producer.sh --broker-list companynode02:9092,companynode03:9092,companynode04:9092 --topic test
kafka-console-consumer.sh --zookeeper companynode02:2181,companynode03:2181,companynode04:2181 --topic test --from-beginning
或者
kafka-console-consumer.sh --bootstrap-server companynode02:9092,companynode03:9092,companynode04:9092 --topic test --from-beginning
查看消费者组列表
kafka-consumer-groups.sh --new-consumer --bootstrap-server companynode01:9092,companynode02:9092,companynode03:9092 --list
查看某一消费者组的描述信息
kafka-consumer-groups.sh --bootstrap-server companynode01:9092,companynode02:9092,companynode03:9092 --describe --group crawlgroup
你的点赞与评论是我最大的创作动力!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。