经纪商不支持 INCREMENTAL_ALTER_CONFIGS

The broker does not support INCREMENTAL_ALTER_CONFIGS

尝试更改 docker 容器 kafka 主题时 retention.ms(为了清除它)我遇到了这个错误:

Error while executing config command with args '--bootstrap-server localhost:9092 --entity-type topics --alter --entity-name history.data_state_change --add-config retention.ms=1000' java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.UnsupportedVersionException: The broker does not support INCREMENTAL_ALTER_CONFIGS at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096) at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:180) at kafka.admin.ConfigCommand$.alterConfig(ConfigCommand.scala:360) at kafka.admin.ConfigCommand$.processCommand(ConfigCommand.scala:327) at kafka.admin.ConfigCommand$.main(ConfigCommand.scala:98) at kafka.admin.ConfigCommand.main(ConfigCommand.scala) Caused by: org.apache.kafka.common.errors.UnsupportedVersionException: The broker does not support INCREMENTAL_ALTER_CONFIGS

我运行的命令是:

kafka-configs --bootstrap-server localhost:9092 --entity-type topics --alter --entity-name history.data_state_change --add-config retention.ms=1000

我不确定这是什么INCREMENTAL_ALTER_CONFIGS以及如何添加它,有人可以在这里分享一些智慧吗?

根据 OneCricketeer 的建议 - 我将我的 Kafka 图像从 IMAGE_KAFKA := wurstmeister/kafka:2.11-2.0.0 更改为 IMAGE_KAFKA := wurstmeister/kafka:2.13-2.7.1,这成功了。