Access kafka broker in a remote machine ERROR -
i run zookeeper , kafka server in 172.19.91.125. run things in machine well.
but when try access kafka service in 172.19.101.61 consumer: bin/kafka-console-consumer.sh --zookeeper 172.19.91.125:2181 --from-beginning --topic my-topic
i following error messages:
[2014-12-16 01:52:42,531] error producer connection linux:9100 unsuccessful (kafka.producer.syncproducer) java.nio.channels.unresolvedaddressexception @ sun.nio.ch.net.checkaddress(net.java:48) @ sun.nio.ch.socketchannelimpl.connect(socketchannelimpl.java:505) @ kafka.network.blockingchannel.connect(blockingchannel.scala:57) @ kafka.producer.syncproducer.connect(syncproducer.scala:141) @ kafka.producer.syncproducer.getormakeconnection(syncproducer.scala:156) @ kafka.producer.syncproducer.kafka$producer$syncproducer$$dosend(syncproducer.scala:68) @ kafka.producer.syncproducer.send(syncproducer.scala:112) @ kafka.client.clientutils$.fetchtopicmetadata(clientutils.scala:53) @ kafka.client.clientutils$.fetchtopicmetadata(clientutils.scala:88) @ kafka.consumer.consumerfetchermanager$leaderfinderthread.dowork(consumerfetchermanager.scala:66) @ kafka.utils.shutdownablethread.run(shutdownablethread.scala:51) [2014-12-16 01:52:42,531] warn fetching topic metadata correlation id 66 topics [set(my-topic)] broker [id:0,host:linux,port:9100] failed (kafka.client.clientutils$) java.nio.channels.unresolvedaddressexception @ sun.nio.ch.net.checkaddress(net.java:48) @ sun.nio.ch.socketchannelimpl.connect(socketchannelimpl.java:505) @ kafka.network.blockingchannel.connect(blockingchannel.scala:57) @ kafka.producer.syncproducer.connect(syncproducer.scala:141) @ kafka.producer.syncproducer.getormakeconnection(syncproducer.scala:156) @ kafka.producer.syncproducer.kafka$producer$syncproducer$$dosend(syncproducer.scala:68) @ kafka.producer.syncproducer.send(syncproducer.scala:112) @ kafka.client.clientutils$.fetchtopicmetadata(clientutils.scala:53) @ kafka.client.clientutils$.fetchtopicmetadata(clientutils.scala:88) @ kafka.consumer.consumerfetchermanager$leaderfinderthread.dowork(consumerfetchermanager.scala:66) @ kafka.utils.shutdownablethread.run(shutdownablethread.scala:51)
it must configuration issue, encounter same issues?
thanks in advance!
at last, solved myself!
because had not choice, check source code, know little java/scala.
i found host:linux,port:9100 broker socket information, should print ip address. thought must wrong host.
then change configuration server.properties, host.name field ip , restart them, works well!
Comments
Post a Comment