I\'m receiving exception when start Kafka consumer.
org.apache.kafka.clients.consumer.OffsetOutOfRangeException: Offsets out of range with no confi
So you are trying to access offset(29898318) in topic(test) partition(0) which is not available right now.
There could be two cases for this
0 may not have those many messages29898318 might have already deleted by retention periodTo avoid this you can do one of following:
auto.offset.reset config to either earliest or latest .
You can find more info regarding this heresmallest offset available for a topic partition by
running following Kafka command line toolcommand:
bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list --topic --time -2
Hope this helps!