You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Fahimeh Ashrafy <fa...@gmail.com> on 2016/08/30 04:40:04 UTC

consumer reread messages

Hello all
how is it possible to set the consumer reread logs? I think I have to
return offset back of the current offset?
Thanks a lot

Re: consumer reread messages

Posted by Michael Freeman <mi...@gmail.com>.
You can you seek.

https://kafka.apache.org/090/javadoc/org/apache/kafka/clients/consumer/KafkaConsumer.html#seek(org.apache.kafka.common.TopicPartition,%20long)

Or if you want to re read the entire log use a different consumer group
name and use auto.offset.reset=earliest



On Tue, Aug 30, 2016 at 5:40 AM, Fahimeh Ashrafy <fa...@gmail.com>
wrote:

> Hello all
> how is it possible to set the consumer reread logs? I think I have to
> return offset back of the current offset?
> Thanks a lot
>