High Level Consumer相关参数
自动管理offset
- auto.commit.enable = true
- auto.commit.interval.ms = 60*1000
手动管理offset
- auto.commit.enable = false
- ConsumerConnector.commitOffsets();
offset存储
- offsets.storage = zookeeper (kafka)
- dual.commit.enabled = true (false)
时间: 2024-10-23 12:23:42