Kafka producer无法发送消息解决办法
2017-11-24 14:32
495 查看
在虚拟机搭建了kafka集群,在集群内使用Shell可以成功发送消息创建Topic。
但是在外部使用API无法发送消息,但是能创建topic
具体原因
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().
所以将
修改为
但是在外部使用API无法发送消息,但是能创建topic
具体原因
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://192.168.84.136:9092
相关文章推荐
- "抱歉,无法发起临时会话,您可以 添加对方为好友以发送消息"解决办法
- MaCfee导致Asp.net无法发送邮件的解决办法
- wordpress无法发送电子邮件。您的主机禁用了 mail() 函数解决办法!
- 使用Bot Framework遇到WebChat无法发送消息的问题解决
- kafka无法发送消息问题处理
- Kafka Producer机制优化-提高发送消息可靠性
- UdpClient无法在局域网中发送UDP广播包的解决办法
- 关于GMAIL无法发送邮件问题解决的办法
- 用飞秋给朋友发送消息失败的原因分析及解决办法
- Windows Server 2003 使用vSphere5.5连接ESXI5.5 “客户端无法向服务器发送完整的请求” 的解决办法
- VS2008无法为添消控件添加消息响应函数的解决办法
- Contact Form 7及WordPress无法收取,发送邮件的原因和解决办法
- CFormView中控件无法响应Ctrl+C和Ctrl+V消息的解决办法
- MaCfee导致Asp.net/Jmail无法发送邮件的解决办法
- 【VC MFC开发】Dll 中对话框的控件无法接受到按键消息的解决办法
- bartender 9.4 错误消息6670 无法链接到数据库的解决办法
- 手机无法发送只能接受短信的解决办法
- 公众号用户发送消息后台PHP回复没有反应的解决办法
- kafka producer发送消息 Failed to update metadata after问题
- 打开office出现错误:向程序发送命令时出现问题 无法更改 中注册的office 加载项的连接状态 解决办法