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.Ine
·
# 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
更多推荐
已为社区贡献1条内容
所有评论(0)