转载:https://www.greenhtml.com/archives/Commit-cannot-be-completed-since-the-group-has-already-rebalanced-and-assigned-the-partitions-to-another-member.htmlhtml

kafka报错: 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.apache

这个是由于:一个consumer在生产消息,另外一个consumer在消费它的消息,他们不能在一个groupid 下面,更改其中一个的group id 便可session