Hi, Kafka experts:

I got serveral questions about auto.offset.reset. This configuration parameter 
governs how  consumer read the message from Kafka when there is no initial 
offset in ZooKeeper or if an offset is out of range. 

Q1. "no initial offset in zookeeper "  means that there isn't any consumer to 
consume the message yet(The offset is set once the consumer starts to consume)?
Q2:  What does "offset is out of range" mean? Can you eleborate one scenario 
when "offset is out of range" could happen?

auto.offset.reset has two values:smallest and largest.
Assume one scenario: A producer has produced 10 messages to kafka, and there is 
no consumer yet to consume it.
Q3: If auto.offset.reset is set to "smallest", does it mean that the consumer 
will read the message from the offset 0?(0 is smallest here)
Q4: If auto.offset.reset is set to "largest", does it mean that the consumer 
will not read any message but wait until new messages come?



bit1...@163.com

Reply via email to