【Kafka】kafka 卡死 Discovered coordinator xx:9092 (id: xxx rack: null) for group xxx

Insert picture description here

1. Background

Constructed a Kafka consumer group, and then mainly wanted to get the start offset and end offset of the partition of Kafka, but when it was obtained, it got stuck here and under some circumstances.

The procedure is as follows


    private Map<TopicPartition, Long> getEdnOffsets(KafkaConsumer<String, String> consumer, Collection<

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/110942043