码迷,mamicode.com
首页 > 其他好文 > 详细

阿里云上部署kafka--遇到的坑

时间:2017-08-16 15:27:21      阅读:1096      评论:0      收藏:0      [点我收藏+]

标签:阿里   code   规则   java.net   opera   内网   broker   exp   并且   

阿里云防火墙关闭,并且配置规则。不然会导致访问不到服务。

问题一: 
Caused by: java.net.UnknownHostException: iZuf68tztea6l5ccdz7wemZ: iZuf68tztea6l5ccdz7wemZ: Name or service not known

vi /etc/hosts
127.0.0.1 iZuf68tztea6l5ccdz7wemZ

iZuf68tztea6l5ccdz7wemZ 自己的主机名

问题二: 
ERROR Error when sending message to topic test with key: null, value: 3 by 
tes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback) 
org.apache.kafka.common.errors.TimeoutException: Batch containing 2 record(s) expired due to timeout 
while requesting metadata from brokers for test-0

# The id of the broker. This must be set to a unique integer for each broker.
broker.id=0
port=9092
host.name=阿里云内网地址
advertised.host.name=阿里云外网映射地址

原文:http://blog.csdn.net/atyz123/article/details/76690939
帮忙解决了第一个问题,感谢原作者,也留给碰到同样问题的朋友。

阿里云上部署kafka--遇到的坑

标签:阿里   code   规则   java.net   opera   内网   broker   exp   并且   

原文地址:http://www.cnblogs.com/azhqiang/p/7373080.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!