我正在使用storm kafka client 1.2.1,并为KafkaTridentSpoutOpaque创建喷口配置,如下所示
kafkaSpoutConfig = KafkaSpoutConfig.builder(brokerURL, kafkaTopic)
.setProp(ConsumerConfig.GROUP_ID_CONFIG,"storm-kafka-group")
.setProcessingGuarantee(ProcessingGuarantee.AT_MOST_ONCE)
.setProp(ConsumerConfig.CLIENT_ID_CONFIG,InetAddress.getLocalHost().getHostName())
我在卡夫卡和Zookeeper中都找不到我的组id和偏移量。通过Zookeeper,我尝试了zkCli。sh和尝试
ls /consumers
但并没有,因为我认为卡夫卡自己现在正在维持偏移量,而不是动物园管理员。
我也用下面的命令尝试过卡夫卡
bin/kafka-run-class.sh kafka.admin.ConsumerGroupCommand --list --bootstrap-server localhost:9092
Note: This will not show information about old Zookeeper-based consumers.
console-consumer-20130
console-consumer-82696
console-consumer-6106
console-consumer-67393
console-consumer-14333
console-consumer-21174
console-consumer-64550
有人能帮我找到偏移量吗?如果我重新启动拓扑,它会再次重播卡夫卡中的事件吗?