1、服务连kafka集群报错:Group coordinator xxx.xxx.xxx.xxx:9093 (id: 2147383250 rack: null) is unavailable or invalid 客户端的日志:
完整日志信息: [2021-12-10 14:10:49.244][INFO][promotionEventConsumer-0-C-1][org.apache.kafka.clients.consumer.internals.AbstractCoordinator][[,,,]][TID: N/A] - [Consumer clientId=consumer-4, groupId=promotionEventGroup] Group coordinator xxx.xxx.xxx.xxx:9093 (id: 2147383250 rack: null) is unavailable or invalid, will attempt rediscovery
服务端的日志: /data/kafka_data/logs/server.log.9:[2021-12-10 09:15:17,785] ERROR [KafkaApi-100397] Error when handling request {group_id=ckafka-65eo4z4v#promotionEventGroup,session_timeout=10000,rebalance_timeout=300000,member_id=,protocol_type=consumer,group_protocols=[{protocol_name=range,protocol_metadata=java.nio.HeapByteBuffer[pos=0 lim=31 cap=31]}]} from xxx.xxx.xxx.xxx:13000-xxx.xxx.xxx.xxx:57854-1756241 (kafka.server.KafkaApis)
消费组超限这种情况有两个解决办法: 1.调高消费组配额 2.删除多余的消费组,避免大于限制额度
2、消费Kafka消息时报InconsistentCroupProtocolError的原因说明
具体错误是这样:InconsistentCroupProtocolError: JoinGroupResponse_v2