问题
How long does kafka store the offset of a consumer after all consumers in that group fail? Is there a configuration variable for this?
回答1:
The right property name is:
offsets.retention.minutes
from https://kafka.apache.org/documentation/#brokerconfigs
回答2:
The value can be configured in kafka broker using:
offsets.retention.minutes
The default is 24
hours.
See: the Kafka broker config docs.
回答3:
I have added following property in Kafka configuration, it changed the offset retention time to 7 days, and working good.
offsets.retention.minutes=10080
来源:https://stackoverflow.com/questions/36977071/kafka-consumer-group-offset-retention