Closed pulzzedavid closed 3 years ago
Hi @pulzzedavid !
When you make the initial "bootstrap" connection (your "localhost"
), Kafka responds with its own list of brokers. This is what you see in kafka documentation referenced as the "advertised hostnames". The idea is that you can connect to a large cluster if you know only one of the hostnames (the host names can be dynamic in general, since nodes in the cluster can go online/offline).
It looks like you're getting the docker internal hostname. I'm not familiar with the image you're using, but it probably has a way to override the advertised host names, which is what you want here.
So to be clear - KafkaEx is not hashing the hostname. The value you're seeing is likely the docker container's internal hostname.
Thanks dantswain,
I see. In that case, let me close this issue and try to override the advertised host name. Much appreciate the pointer.
I am trying to bring up a Kafka connection but is failing. Noticed that metadata has host as what seems to be a hashed value. Any pointers would be much appreciated. I am testing with a single Kafka instance from https://hub.docker.com/r/bitnami/kafka/.