flume系列之:Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member
一、完整报错
- KafkaSource EXCEPTION, {}
org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time message processing. You can address this either by increasing the session timeout or by reducing the maximum size of batches returned in poll() with max.poll.records.
二、参数理解
max.poll.interval.ms:
- 两次poll操作允许的最大时间间隔。默认5分钟。两次poll超过此时间间隔,会进行rebalance操作,导致客户端连接失效,无法提交offset信息ÿ