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
本文解决在Windows环境下使用Eclipse运行Linux部署的Kafka集群时遇到的Kafka.common.FailedToSendMessageException错误。通过配置主机名与IP地址映射,成功解决连接问题。

2448

被折叠的 条评论
为什么被折叠?



