COMMITCANNOTBECOMPLETEDSINCETHEGROUPH。。。
kafka报错: org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot be completed since the group has alreadyrebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer thanthe configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time message processing. You canaddress 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 可以了
因篇幅问题不能全部显示,请点此查看更多更全内容