Kafka consumer group offset retention

女生的网名这么多〃 提交于 2019-12-12 11:32:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!