博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
阿里云上部署kafka--遇到的坑
阅读量:4557 次
发布时间:2019-06-08

本文共 832 字,大约阅读时间需要 2 分钟。

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

问题一: 

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

vi /etc/hosts127.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 帮忙解决了第一个问题,感谢原作者,也留给碰到同样问题的朋友。

转载于:https://www.cnblogs.com/azhqiang/p/7373080.html

你可能感兴趣的文章
rabbitmq学习(四):利用rabbitmq实现远程rpc调用
查看>>
侯捷C++学习(二)
查看>>
EasyPlayer RTSP Android安卓播放器修复播放画面卡在第一帧bug
查看>>
web项目中全局常量的添加
查看>>
搬运工程 启动!
查看>>
局部加权回归(LWR) Matlab模板
查看>>
Connect to the DSP on C6A8168/DM8168/DM8148 using CCS
查看>>
hibernate在使用getCurrentSession时提示no session found for current thread
查看>>
【Luogu1471】方差(线段树)
查看>>
【agc028E】High Elements(动态规划,线段树,贪心)
查看>>
DEV中svg图标的使用
查看>>
Codefroces Gym101572 I.Import Spaghetti-有向图跑最小环输出路径(Floyd)
查看>>
有关位运算的操作+二进制状态压缩
查看>>
Eclipse插件 -- 阿里巴巴扫描编码规插件
查看>>
(1.1)学习笔记之mysql体系结构(内存、进程、线程)
查看>>
markdown测试
查看>>
Java-Maven-Runoob:Maven 依赖管理
查看>>
杂项-Log:log4net
查看>>
杂项-Java:EL表达式
查看>>
tarroni music
查看>>