You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Jagat Singh <ja...@gmail.com> on 2016/12/15 06:25:34 UTC

Reset offset of consumer to 0

Hi,

Is there any easy way to reset offset of consumer group back to 0 for given
topic.

I am using below command to check offset

bin/kafka-consumer-offset-checker.sh --zookeeper zookeeper-host.com:2181
--group consumer-group --topic nameoftopic --security SASL_PLAINTEXT

Thanks,

J

Re: Reset offset of consumer to 0

Posted by "Matthias J. Sax" <ma...@confluent.io>.
Read this blog post. It's about Kafka Streams but you can apply
bin/kafka-streams-application-reset.sh to regular client applications, too.


https://www.confluent.io/blog/data-reprocessing-with-kafka-streams-resetting-a-streams-application/


-Matthias


On 12/14/16 10:25 PM, Jagat Singh wrote:
> Hi,
> 
> Is there any easy way to reset offset of consumer group back to 0 for given
> topic.
> 
> I am using below command to check offset
> 
> bin/kafka-consumer-offset-checker.sh --zookeeper zookeeper-host.com:2181
> --group consumer-group --topic nameoftopic --security SASL_PLAINTEXT
> 
> Thanks,
> 
> J
>