Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

​Kafka reset offset for a specific topic from CLI

avatar
Expert 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

avatar
Expert Contributor

@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

avatar
Expert Contributor

@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!

avatar
Expert Contributor

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

avatar
Expert Contributor

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