首页  

kafka listeners 和 advertised.listeners     所属分类 kafka 浏览量 1226
listeners=PLAINTEXT://localhost:9092
The address the socket server listens on. 
It will get the value returned from java.net.InetAddress.getCanonicalHostName() if not configured.


advertised.listeners=PLAINTEXT://your.host.name:9092
Hostname and port the broker will advertise to producers and consumers. 
If not set,it uses the value for "listeners" if configured.  
Otherwise, it will use the value returned from java.net.InetAddress.getCanonicalHostName().

Hostname and port the broker will advertise to producers and consumers. 

advertise 公布

advertised.listeners 注册到zk上 ,供生产者和消费者连接使用

上一篇     下一篇
lua语法特点

https知识点

中年人应该知道的10个事业潜规则

寒冬里说经济周期

kafka consumer均衡算法

Kafka1.1.0 Broker配置