How to make kafka consumer to read from last consumed offset but not from beginning

后端 未结 3 1742
刺人心
刺人心 2021-01-04 10:24

I am new to kafka and trying to understand if there is a way to read messages from last consumed offset, but not from beginning.

I am writing an example case, so tha

3条回答
  •  伪装坚强ぢ
    2021-01-04 10:48

    You should set the auto.offset.reset parameter in your consumer config on largest, so it will read all messages after last committed offset.

提交回复
热议问题