Kafka开发报错: Kafka.common.FailedToSendMessageException: Failed To Send Messages Af

 Kafka的集群部署于Linux环境下,在Windows下的Eclipse中运行Demo报错,通过以下方案解决

Kafka.common.FailedToSendMessageException: Failed To Send Messages After 3 Tries

 
Hi pradeep,
It seems your client is not able to connect with Kafka Server. Kafka client
connects with server using HOSTNAME not IP.  You have to map the hostname
with IP address.
In Ubuntu Server, /etc/hosts put an entry of your {clientIp   hostname}
In Windows Client, %SystemRoot%
\system32\drivers\etc\hosts
put an entry of your { serverIp    hostname}
Regards,
Kamal C.

http://qnalist.com/questions/5056261/exception-in-thread-main-kafka-common-failedtosendmessageexception-failed-to-send-messages-after-3-tries

猜你喜欢

转载自ghl116.iteye.com/blog/2286230
AF
今日推荐