troubleshooting

What could be causing the connection issue when setting properties.bootstrap.server in Kafka configuration?

I'm facing an issue where setting the properties.bootstrap.server in my Kafka configuration is resulting in a connection error. Despite trying different IP values, the meta-node always looks at 127.0.0.1. This occurs when trying to connect an external Kafka broker outside of Docker. Any insights on what might be causing this issue?

Zs

Zsombor Földesi

Asked on Mar 20, 2023

  • Check the advertised.listeners setting in Kafka configuration to ensure it matches the external IP.
  • Verify the network configuration and firewall settings to allow connections to the external Kafka broker.
  • Ensure that the Kafka broker is reachable from outside the Docker environment.
  • Review the Kafka broker logs for any errors or warnings related to the connection.
  • Consider updating the Kafka configuration to include the correct external IP address for advertised.listeners.

Example:

advertised.listeners=PLAINTEXT://external_ip:port
Apr 05, 2023Edited by