Apache kafka 卡夫卡1.0.x删除消费群体

Apache kafka 卡夫卡1.0.x删除消费群体,apache-kafka,kafka-consumer-api,Apache Kafka,Kafka Consumer Api,我正在尝试删除未使用的消费者组。因为我使用的是基于官方文档的1.0.x版 When using the new consumer API (where the broker handles coordination of partition handling and rebalance), the group is deleted when the last committed offset for that group expires. 在我的例子中,规定这种行为的配置属性是 #set of

我正在尝试删除未使用的消费者组。因为我使用的是基于官方文档的1.0.x版

When using the new consumer API (where the broker handles coordination of partition handling and rebalance), the group is deleted when the last committed offset for that group expires.
在我的例子中,规定这种行为的配置属性是

#set offset retention to 2 weeks
offsets.retention.minutes=20160
我只能在
server.properties
中找到这些。在应用程序启动时记录的使用者配置中没有提到它们

试图重新配置组,以便
偏移.retention.minutes=0
,我找不到最终答案。我很惊讶,在群体层面上使用
kafka消费群体
无法改变这一点。。。这会如此牵扯进来吗


我知道有一个API,但这是在版本1.1.x中引入的。删除此组的唯一方法是等待偏移过期吗?

清除组的唯一方法是更改
\u消费者\u偏移的保留时间。不能针对单个组(或该主题中的记录)


我相信
deleteConsumerGroups
调用会将组名的空值推送到该主题中,并且您仍然需要等待主题被压缩,以便实际删除组

最后,我只是让保留策略对该主题造成影响。两周后,消费者群体被自动删除。