0

I have this article https://www.confluent.io/blog/kafka-client-cannot-connect-to-broker-on-aws-on-docker-etc/ in which, it is mentioned that to establish kafka connection there are two steps first is to "The initial connection to a broker (the bootstrap). This returns metadata to the client, including a list of all the brokers in the cluster and their connection endpoints."

and second step is "The client then connects to one (or more) of the brokers returned in the first step as required. If the broker has not been configured correctly, the connections will fail."

In my case first step is passing and second one is also working but sometimes I get connection error EHOSTUNREACH broker_id , even though broker id is correct why am I getting this error, and also, if it is like second step why would it be so intermittant, and also is there a way to determine whether this is issue with consumer or broker sending information

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
  • Broker id doesn't really matter. Please show your advertised listeners and describe your network layout... Maybe your consumer is timing out due to slow network – OneCricketeer Dec 05 '22 at 15:24

0 Answers0