Kafka Consumer Marking the coordinator 2147483647 dead

后端 未结 6 719
醉话见心
醉话见心 2021-02-04 00:46

I am using Kafka Server 0.9 with consumer kafka-client version 0.9 and kafka-producer 0.8.2.

Every thing is working great except i am getting lot of info that the coordi

6条回答
  •  心在旅途
    2021-02-04 01:20

    In my case the message was in logs when I try to assign partitions manually. After I've read in api docs of the new consumer follow notice:

    It is also possible for the consumer to manually assign specific partitions (similar to the older "simple" consumer) using assign(Collection). In this case, dynamic partition assignment and consumer group coordination will be disabled.

    That is, if you have code like this:

        KafkaConsumer consumer = new KafkaConsumer(props);
        consumer.assign( Arrays.asList(
                new TopicPartition("topic", 0),
                new TopicPartition("topic", 1)
        ));
    

    then the message "Marking the coordinator 2147483647 dead" puts in our logs always.

提交回复
热议问题