当我运行我的kafka代码时,消费者记录会不断迭代,即使生产者记录也在迭代。
像
一样循环[ Topic : 123456, Offset Id : 6, Partition : 0]
Consumed at :Wed Aug 17 10:59:24 IST 2016
10:59:24.359 [main] DEBUG org.apache.kafka.clients.consumer.KafkaConsumer - Committing offsets: {123456-0=OffsetAndMetadata{offset=7, metadata=''}}
10:59:24.361 [main] DEBUG org.apache.kafka.clients.consumer.internals.ConsumerCoordinator - Group HYDTS001 committed offset 7 for partition 123456-0
10:59:24.460 [main] DEBUG org.apache.kafka.clients.consumer.KafkaConsumer - Committing offsets: {123456-0=OffsetAndMetadata{offset=7, metadata=''}}
10:59:24.465 [main] DEBUG org.apache.kafka.clients.consumer.internals.ConsumerCoordinator - Group HYDTS001 committed offset 7 for partition 123456-0
10:59:24.561 [main] DEBUG org.apache.kafka.clients.consumer.KafkaConsumer - Committing offsets: {123456-0=OffsetAndMetadata{offset=7, metadata=''}}
10:59:24.568 [main] DEBUG org.apache.kafka.clients.consumer.internals.ConsumerCoordinator - Group HYDTS001 committed offset 7 for partition 123456-0
10:59:24.662 [main] DEBUG org.apache.kafka.clients.consumer.KafkaConsumer - Committing offsets: {123456-0=OffsetAndMetadata{offset=7, metadata=''}}
10:59:24.665 [main] DEBUG org.apache.kafka.clients.consumer.internals.ConsumerCoordinator - Group HYDTS001 committed offset 7 for partition 123456-0
10:59:24.763 [main] DEBUG org.apache.kafka.clients.consumer.KafkaConsumer - Committing offsets: {123456-0=OffsetAndMetadata{offset=7, metadata=''}}
10:59:24.767 [main] DEBUG org.apache.kafka.clients.consumer.internals.ConsumerCoordinator - Group HYDTS001 committed offset 7 for partition 123456-0
当数据仅涉及主题时如何触发我的消费者? 有可能这样做吗?