Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Internal and external Network access of Kafka Cluster based on SASL+ACL

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Requirements: Kafka pseudo-cluster is deployed on Ali Cloud ECS server, which requires broker to use intranet Nic when other machines in the internal network access, and public network Nic for external users to access.

IP: intranet: 10.130.10.10 Extranet: 12.12.12.12

Solution:

1. First add the parsing record 10.130.10.10 SvrInside 2 in the / etc/hosts file. To modify server.properties port 9092 listeners=SASL_PLAINTEXT://0.0.0.0:9092 advertised.listeners=SASL_PLAINTEXT://12.12.12.12:9092 advertised.host.name=SvrInside, the other two nodes only need to modify the port in the configuration file. Test the private network client access:-- borker-list 10.130.10.10 9092 external network client access:-- borker-list 12.12.12.12 9092

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report