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.
這個是因為:一個consumer在生產消息,另一個consumer在消費它的消息,他們不能在一個groupid 下面,更改其中一個的group id 即可
我的是分模塊的開發,kafka生產者是在另一個A模塊的,該模塊是由其他同事負責開發,我在B模塊負責接收數據進行處理,按照之前網上的添加session.timeout.ms=60000 也沒有用,后來看到上面的更改了groupid 可以了