【发布时间】:2017-12-08 08:20:54
【问题描述】:
根据 Kafka 文档,消费者配置 enable.auto.commit 的默认值为 true。但我越来越假了。
在我的 Kafka 流应用程序中,我尝试将其更改为 true 为 props.put(StreamsConfig.consumerPrefix(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG), true) 以自动提交偏移量。但我在日志中收到 WARN o.a.k.s.StreamsConfig [main] Unexpected user-specified consumer config: enable.auto.commit found. User setting (true) will be ignored and the Streams default setting (false) will be used 消息并恢复为 false。
原因是什么?请帮帮我。
【问题讨论】:
标签: apache-kafka kafka-consumer-api apache-kafka-streams