KafkaShareGroupsResetOffsets

Learn how to reset the offsets of Kafka Share Groups.

This section describes the KafkaShareGroupsResetOffsets action, used to reset the Share-Partition Start Offset (SPSO) of one or more Kafka share groups.

Usage

You must choose one of the following reset specifications: to-earliest, to-latest, to-offset, or delete-offsets.

OptionDescription
--groupThe share group to act on.
--groupsThe share groups to act on.
--allAct on all share groups.
--topicTopics to include. Each entry is topic (all partitions) or topic:partition.
--to-earliestReset offsets to the earliest offset.
--to-latestReset offsets to the latest offset.
--to-offsetReset offsets to a specific offset.
--delete-offsetsDelete the share-partition offsets for the given topics.
--includesPatterns of share groups to include.
--excludesPatterns of share groups to exclude.
--dry-runOnly show results without executing changes.

Examples

Reset a single share group to the earliest offset for a topic:

$ jikkou action KafkaShareGroupsResetOffsets execute \
    --group my-share-group \
    --topic my-topic \
    --to-earliest

Delete the share-partition offsets for a topic:

$ jikkou action KafkaShareGroupsResetOffsets execute \
    --group my-share-group \
    --topic my-topic \
    --delete-offsets