赞
踩
- # 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。