Have you looked at https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-Whycan'tmyconsumers/producersconnecttothebrokers ?
Thanks, Jun On Mon, Jul 7, 2014 at 9:18 AM, Kalpa 1977 <kalpa1...@gmail.com> wrote: > hi all, > I am using kafka 0-8-1. > > I have created a simple topic test no partition and no replication, > producer and consumer both works fine running in the same system, > However, If i call from the remote system as per the below mentioned > command. > > ./bin/kafka-producer-perf-test.sh --broker-list *172.16.229.229*:9092 > --topic test --messages 1 --producer-num-retries 1 > > it gives error saying. > > ERROR Producer connection to ubuntu.01-229:9092 unsuccessful > (kafka.producer.SyncProducer) > java.net.ConnectException: Connection refused > at sun.nio.ch.Net.connect0(Native Method) > > In the broker list, I am specifying the IP (*172.16.229.229*), but, why it > is trying to connect using a host name of itself, and which is not > correct.I can ping remote ip, and also telnet on port 9092. > > Please can anybody help me how to make it to connect to the remote ip. > > thanks, > Kalpa. >