Support Questions
Find answers, ask questions, and share your expertise

​Kafka reset offset for a specific topic from CLI

Solved Go to solution

​Kafka reset offset for a specific topic from CLI

Contributor

Hi All, Thanks a lot for all the help. Is there any way to reset kafka offsets from CLI. This link resets all the topics https://stackoverflow.com/questions/45670937/kafka-0-11-how-to-reset-offsets

Thanks

Dhieru

1 ACCEPTED SOLUTION

Accepted Solutions

Re: ​Kafka reset offset for a specific topic from CLI

Rising Star

@dhieru singh

Hi,

Below are the options that you can use with ./kafka-consumer-groups.sh --reset-offsets:

83479-screen-shot-2018-07-30-at-114314-am.png

For a specific topic you can use --topic option instead of --all-topics. Please let me know if that answers your question.

Thank you!

View solution in original post

3 REPLIES 3

Re: ​Kafka reset offset for a specific topic from CLI

Rising Star

@dhieru singh

Hi,

Below are the options that you can use with ./kafka-consumer-groups.sh --reset-offsets:

83479-screen-shot-2018-07-30-at-114314-am.png

For a specific topic you can use --topic option instead of --all-topics. Please let me know if that answers your question.

Thank you!

View solution in original post

Re: ​Kafka reset offset for a specific topic from CLI

Contributor

@dbains thanks a lot appreciate it, face palm should have read the documentation before asking the questions apologies

Re: ​Kafka reset offset for a specific topic from CLI

Rising Star

@dhieru singh No problem at all, I am glad it helped!