Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

wrong alerts when configuring two listeners for Kafka in Ambari

avatar
Contributor

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 ?

1 ACCEPTED SOLUTION

avatar
Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
5 REPLIES 5

avatar
Master Mentor

@iamabug 

I think it's a misconfiguration can you see the differences between these 2? The one in Black and BOLD is your current remove the ( ) and replace it with a colon ( : ) and space after 

 

listener.security.protocol.map=SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL:SASL_PLAINTEXT          [old]


listener.security.protocol.map: SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL:SASL_PLAINTEXT              [New]

Restart the brokers and let me know if you still encounter the problem

 

avatar
Contributor

@Shelton Hi, I am only using (=) to represent the configuration key and value. In Ambari, there is no need and no place to type (=) or (: ).

avatar
Master Mentor

@iamabug 

I now get you so yours is Ambari managed let me get back to you after testing

avatar
Master Mentor

@iamabug 

I think I have seen the problem, can you share your Ambari UI screenshot of your configured listeners? Or where have you declared these parameters

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

Only one broker? I am sorry I can only help in the evenings I have a full time job that consumes my time 🙂

 

 

 

 

avatar
Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login