返回到文章

采纳

编辑于 4年前

kafkaError: Executing consumer group command failed due to org.apache.kafka.common.KafkaException

kafka

大佬我这边kafka报这个错

2021-09-18 19:23:19 |WARN |org.springframework.kafka.KafkaListenerEndpointContainer#4-0-C-1 |org.apache.kafka.clients.NetworkClient:961 |[Consumer clientId=consumer-6, groupId=myGroup] 1 partitions have leader brokers without a matching listener, including [rdsQuickRealTimeTopic-0]

然后执行

./kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list

会报

Error: Executing consumer group command failed due to org.apache.kafka.common.KafkaException: Failed to find brokers to send ListGroups
java.util.concurrent.ExecutionException: org.apache.kafka.common.KafkaException: Failed to find brokers to send ListGroups