我有一个0.10的kafka集群,通过端口映射到外网,有9个生产者程序在外网向集群发布消息,开始我用kafka-client0.10的jar包时,有3个生产者报errmsg:Failed to update metadata after 60000 ms错误,换成kafka-client0.8.2的jar包时就可以发布成功,但是过一段时间后生产者的吞吐量变的特别低,最后报错
5447483 [kafka-producer-network-thread | producer-12] WARN org.apache.kafka.common.network.Selector - Error in I/O with actkafka109
java.io.IOException: 连接超时
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:60)
at org.apache.kafka.common.network.Selector.poll(Selector.java:248)
at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:192)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:191)
at org.apache.kafka.clients.producer.internals.Sender.run(Sender.java:122)
at java.lang.Thread.run(Thread.java:745)
5447483 [kafka-producer-network-thread | producer-12] WARN org.apache.kafka.clients.producer.internals.Sender - Got error produce response with correlation id 122988 on topic-partition cname_dns-24, retrying (2 attempts left). Error: NETWORK_EXCEPTION
5447483 [kafka-producer-network-thread | producer-12] WARN org.apache.kafka.clients.producer.internals.Sender - Got error produce response with correlation id 122988 on topic-partition cname_dns-8, retrying (2 attempts left). Error: NETWORK_EXCEPTION
重启生产者后又可以跑一段时间
这个问题纠结我好久了
|
|