Kafkaのドキュメントでは、コンシューマ設定のenable.auto.commitのデフォルト値はtrueです。しかし、私は間違っています。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に戻します。
理由は何ですか?私を助けてください。
この問題にも注意してください:https://stackoverflow.com/questions/43416178/how-to-commit-manually-with-kafka-stream –