8

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?

Anirudh
  • 2,286
  • 4
  • 38
  • 64
masih
  • 173
  • 1
  • 1
  • 6

3 Answers3

10

The right property name is:

offsets.retention.minutes

from https://kafka.apache.org/documentation/#brokerconfigs

8

The value can be configured in kafka broker using:

offsets.retention.minutes

The default is 24 hours.

See: the Kafka broker config docs.

Achal
  • 11,821
  • 2
  • 15
  • 37
masih
  • 173
  • 1
  • 1
  • 6
2

I have added following property in Kafka configuration, it changed the offset retention time to 7 days, and working good.

offsets.retention.minutes=10080enter image description here

DollyShukla
  • 107
  • 5