Skip to main content

Re: Unable to reset kafka offset in a consumer group


Thanks Luke,
The problem I was having was that the consumer group was not inactive even with all the consumers stopped.
Managed to work around this now.

Many Thanks
Chris

> On 25 Aug 2022, at 10:12 am, Luke Chen <showuon@gmail.com> wrote:
> Hi Chris,
>
>> is there a way to force the offset forward by an increment of 1 just for
> this topic?
> kafka-consumer-groups.sh script has an option `--shift-by` to shift current
> offset by 'n'.
> I think this is what you are looking for.
>
> Thank you
> Luke
>
> On Thu, Aug 25, 2022 at 4:25 PM Chris Peart <chris@peart.me.uk> wrote:
>
>>
>>
>> Hi All,
>>
>> I'm trying to reset a kafka offset for a topic in a consumer group, i
>> have stopped all the consumers using the consumer group but i'm still
>> receiving the message that the current state is stable.
>>
>> Is there a way to put the consumer group to an inactive state after
>> stopping all the consumers or is there a way to force the offset forward
>> by an increment of 1 just for this topic?
>>
>> Many Thanks,
>>
>> Chris

Comments