How to change start offset for topic?

后端 未结 4 989
灰色年华
灰色年华 2020-12-04 12:46

It is possible to change the start offset for a new topic? I would like to create a new topic and start reading from the offset 10000. How?

4条回答
  •  [愿得一人]
    2020-12-04 13:04

    if you need to change the offset.

    kafka-consumer-groups --bootstrap-server {url} \
    --topic {topic} \
    --group {consumer} \
    --reset-offsets --to-datetime 2020-11-11T00:00:00.000+0900 \
    --execute
    

    Unparseable Date Error when parsing UTC string through SimpleDateFormat to Date

提交回复
热议问题