kafka的advertised.listeners配置

# 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().
#advertised.listeners=PLAINTEXT://your.host.name:9092
advertised.listeners=PLAINTEXT://主机的域名:9092 


kafka 0.9.x以后的版本新增了advertised.listeners配置


kafka 0.9.x以后的版本不要使用 advertised.host.name 和 advertised.host.port 已经deprecated

你可能感兴趣的:(kafka的advertised.listeners配置)