wrong alerts when configuring two listeners for Kafka in Ambari
I install Kafka in Ambari and configure two listeners for every broker, one for inner traffic and one for outer traffic. E.g., broker A has two ip addresses: 192.168.1.1 and 88.88.88.88, and its configuration is like follows:
SASL_PLAINTEXT://192.168.1.1:9092,EXTERNAL://88.88.88.88:19092
listener.security.protocol.map=SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL:SASL_PLAINTEXT
security.inter.broker.protocol=SASL_PLAINTEXT
With this configurations, Kafka works fine but keeps alerting, the message is:
Connection failed: [Errno 111] Connection refused to 192.168.1.1:19092
This is not valid because ip and port do not match. And I suspect that it could just split by colon and use the last element. So I exchange the order of the two listeners:
EXTERNAL://88.88.88.88:19092,SASL_PLAINTEXT://192.168.1.1:9092
To my surprise, it still alerts and the message changes to
Connection failed: [Errno 111] Connection refused to 88.88.88.88:9092
ip and port still do not match ?
Have anybody also run into this or am I misconfiguring something ? Or this is a bug ?

