【Kafka】Troubleshooting
2016-01-15 00:00
246 查看
一、Kafka Failed to send messages after 3 tries
http://www.tuicool.com/articles/eeIvyy3
当生产者向服务器发起连接,会再kafka的服务器上配置的zookeeper.connect
在ZK上找到broker的hostname。
1.配置生成者的/etc/hosts或是其他的,就是让ping ${hostname}
2.配置server.properties==>advertiesd.host.name=${ip}即把ip注册到ZK上,这样生产者就直接访问ip了。
http://www.tuicool.com/articles/eeIvyy3
[zk: localhost:2181(CONNECTED) 5] get /brokers/ids/136 {"jmx_port":-1,"timestamp":"1452864687938","host":"hftest0001.webex.com","version":1,"port":9092} 按照default配置,broker启动后,会把hostname注册到zk上, # Hostname the broker will bind to. If not set, the server will bind to all interfaces #host.name=localhost # Hostname the broker will advertise to producers and consumers. If not set, it uses the # value for "host.name" if configured. Otherwise, it will use the value returned from # java.net.InetAddress.getCanonicalHostName(). #advertised.host.name=<hostname routable by clients>
当生产者向服务器发起连接,会再kafka的服务器上配置的zookeeper.connect
在ZK上找到broker的hostname。
1.配置生成者的/etc/hosts或是其他的,就是让ping ${hostname}
2.配置server.properties==>advertiesd.host.name=${ip}即把ip注册到ZK上,这样生产者就直接访问ip了。
相关文章推荐
- ulimit 设置
- Vert.x 应用的配置
- 创业的第一百零九天
- 非空参数校验的工具类
- MemcachedHelper工具类
- 思科交换机根据MAC、IP地址查找对应端口流程
- RAID的原理和区别
- 百度地图API-获得2个地方的距离
- 缓存穿透与缓存雪崩
- BitSet和布隆过滤器(Bloom Filter)
- 数据库外键的使用以及优缺点
- redis工具类
- 我的第1个开源项目:MySQL-Binlog
- 常见移动设备的 CSS3 Media Query 整理(iPhone/iPad/Galaxy/HTC
- jsp页面中的代码执行加载顺序
- shrio自定义realm,权限拦截
- js 选择图片并预览、上传
- 用代码判断Android手机的Rom是MIUI或者Flyme,以及获取MIUI或者Flyme的版本
- 整合框架过程记录日志
- jquery support