Able to connect successfully to local kafka broker/cluster running locally (dockerized) using Conduktor, but when trying to connect to Kafka cluster running on Unix VM, getting below error. Error: "The broker [...] is reachable but Kafka can't connect. Ensure you have access to the advertised listeners of the the brokers and the proper authorization"
Appreciate any assistance.
When running in docker, you need to ensure that the ports are accessible from outside of your container. To verify this, try doing a
telnet <ip> <port>and check if you are able to connect.Since the error message says, the broker is reachable, I suppose you would be able to successfully
telnetto the broker.Next, check your broker config called
advertised.listeners. Here you need to mention yourIP:Portcombination whereIPis what you will be giving in your client program i.e. Conduktor.An example for that would be
and then restart your broker and reconnect. If you are using
sslthen you need to provide some extra configuration. See Configuring Kafka brokers for more.