How long does kafka store the offset of a consumer-group after all consumers in that group fail? Is there a configuration variable for this?
Asked
Active
Viewed 1.6k times
3 Answers
10
The right property name is:
offsets.retention.minutes

Jacopo Silvestro
- 116
- 1
- 4
-
offsets.retention.minutes is at broker level. Is there anything at topic level? – user3366706 Nov 21 '17 at 19:34
-
This is a read-only broker config. Can we change this by any kafka cli command, Instead of server.properties. ? – mohit Feb 20 '19 at 14:51
8
The value can be configured in kafka broker using:
offsets.retention.minutes
The default is 24
hours.
See: the Kafka broker config docs.
-
offsets.retention.minutes is at broker level. Is there anything at topic level? – user3366706 Nov 21 '17 at 19:34
2
I have added following property in Kafka configuration, it changed the offset retention time to 7 days, and working good.

DollyShukla
- 107
- 5