The group member's supported protocols are incompatible with those of existing members

本文解析了启动Kafka消费者时遇到的InconsistentGroupProtocolException错误,指出该问题是由于多个消费者在消费同一个topic时所支持的协议不一致导致。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

启动kafka消费者报错:
Exception in thread “Thread-2” org.apache.kafka.common.errors.InconsistentGroupProtocolException: The group member’s supported protocols are incompatible with those of existing members.
是因为有多个消费者在消费一个topic

请帮我分析并解决这个错误: .ConsumerCoordinator : [Consumer clientId=consumer-dangerball-3, groupId=dangerball] Successfully joined group with generation Generation{generationId=3, memberId='consumer-dangerball-3-f10230bd-6cb2-4f81-ad18-e66470f27018', protocol='range'} 2025-07-31T20:51:25.364+08:00 ERROR 93468 --- [sportsbook-transaction] [-StreamThread-1] org.apache.kafka.streams.KafkaStreams : stream-client [sportsbook-transaction-767a07f9-a87e-4167-b6f7-0ded4422798f] Encountered the following exception during processing and the registered exception handler opted to SHUTDOWN_CLIENT. The streams client is going to shut down now. org.apache.kafka.streams.errors.StreamsException: org.apache.kafka.common.errors.InconsistentGroupProtocolException: The group member's supported protocols are incompatible with those of existing members or first group member tried to join with empty protocol type or empty protocol list. at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:657) ~[kafka-streams-7.6.0-ccs.jar:na] at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:579) ~[kafka-streams-7.6.0-ccs.jar:na] Caused by: org.apache.kafka.common.errors.InconsistentGroupProtocolException: The group member's supported protocols are incompatible with those of existing members or first group member tried to join with empty protocol type or empty protocol list. 2025-07-31T20:51:25.365+08:00 INFO 93468 --- [sportsbook-transaction] [-StreamThread-1] org.apache.kafka.streams.KafkaStreams : stream-client [sportsbook-transaction-767a07f9-a87e-4167-b6f7-0ded4422798f] State transition from REBALANCING to PENDING_ERROR
最新发布
08-02
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值