Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

kafka.common.FailedToSendMessageException: Failed to send messages after 1 tries.

$
0
0
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.

Viewing all articles
Browse latest Browse all 5648

Trending Articles