提示示例:

ERROR Error when sending message to topic test with key: null, value: 2 bytes with error: Failed to update metadata after 60000 ms.

 

解决方案:

这样的问题需要修改broker的配置文件config/server.properties来解决:

1
advertised.host.name=你的IP地址(不能为hostname,一定要是IP地址。如果需要从外网访问,则需要使用外网地址)
posted on 2017-02-10 09:24  baraka  阅读(14575)  评论(0编辑  收藏  举报