apache-kafkaConsumer Groups and Offset Management


Parameters

ParameterDescription
group.idThe name of the Consumer Group.
enable.auto.commitAutomatically commit offsets; default: true.
auto.commit.interval.msThe minimum delay in milliseconds between to commits (requires enable.auto.commit=true); default: 5000.
auto.offset.resetWhat to do when there is no valid committed offset found; default: latest.(+)
(+) Possible ValuesDescription
earliestAutomatically reset the offset to the earliest offset.
latestAutomatically reset the offset to the latest offset.
noneThrow exception to the consumer if no previous offset is found for the consumer's group.
anything elseThrow exception to the consumer.