Kafka producer production data to Kafka exception: Got error produce response with correlation ID-on topic-partition ... Error:network_exception

Source: Internet
Author: User


Kafka producer production data to Kafka exception: Got error produce response with correlation ID-on topic-partition ... Error:network_exception1. Description of the problem
2017-09-13 15:11:30.656 o.a.k.c.p.i.Sender [WARN] Got error produce response with correlation id 25 on topic-partition test2-rtb-camp-pc-hz-5, retrying (299 attempts left). Error: NETWORK_EXCEPTION
2017-09-13 15:11:30.656 o.a.k.c.p.i.Sender [WARN] Got error produce response with correlation id 25 on topic-partition test2-rtb-camp-pc-hz-23, retrying (299 attempts left). Error: NETWORK_EXCEPTION
2017-09-13 15:11:30.657 o.a.k.c.p.i.Sender [WARN] Got error produce response with correlation id 25 on topic-partition test2-rtb-camp-pc-hz-14, retrying (299 attempts left). Error: NETWORK_EXCEPTION
2017-09-13 15:11:30.657 o.a.k.c.p.i.Sender [WARN] Got error produce response with correlation id 16 on topic-partition test2-rtb-camp-pc-hz-5, retrying (299 attempts left). Error: NETWORK_EXCEPTION
2. Cause of the problem$KAFKA _home/config/server.properties have the following comments:The main idea is that each broker in Kafka will notify the producer and the consumer of hostname and port, and if listeners is configured, he returns the value of listeners, otherwise The Java.net.InetAddress.getCanonicalHostName () is called, and this method returns the hostname of the Linux host, not the IP. Therefore, in the construction of Kafka need to configure listeners this parameter, preferably also with Host.name=ip.


Kafka producer production data to Kafka exception: Got error produce response with correlation ID-on topic-partition ... Error:network_exception


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.