Hi,
I tried to add a second listener to my kafka brokers running in docker like
this:
listeners=INTERNAL://{{getenv "KAFKA_SERVER_IP"}}:{{getenv "KAFKA_PORT"
"9092"}}, EXTERNAL://0.0.0.0:{{getenv "KAFKA_PORT_EXTERNAL" "9096"}}
listener.security.protocol.map=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
inter.broker.listener.name=INTERNAL
advertised.listeners=INTERNAL://{{getenv "KAFKA_SERVER_IP"}}:{{getenv
"KAFKA_PORT" "9092"}}, EXTERNAL://{{getenv
"KAFKA_SERVER_IP_EXTERNAL"}}:{{getenv "KAFKA_PORT_EXTERNAL" "9096"}}
I tried to follow the explanations here:
https://www.confluent.io/blog/kafka-listeners-explained/
When I start one of the brokers with this configuration, it seems to boot fine
but then does not take up any work again. My guess is, that it's not connected
to the other brokers anymore.
Did I miss some vital configuration to start a broker with 2 listeners?
Is there a way to check what listener brokers use for their internal cluster
communication?
Thanks,
Claudia