kafka无法网络访问问题
来源:互联网 发布:js java变量 编辑:程序博客网 时间:2024/05/25 16:39
refs:
http://stackoverflow.com/questions/17808988/using-kafka-java-producer-send-a-message-producer-connection-to-localhost9092
https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-OnEC2%2Cwhycan%27tmyhighlevelconsumersconnecttothebrokers%3F
基于大部分实例都是用localhost在本机单例测试,想在网络上另一台机器访问,却怎么也连不上,经查阅发现是kafka的server.properties配置问题,默认是localhost,必须打开并用自己的ip地址。
server.properties.
host.name=192.168.1.203
Why can't my consumers/producers connect to the brokers?
When a broker starts up, it registers its ip/port in ZK. You need to make sure the registered ip is consistent with what's listed in metadata.broker.list in the producer config. By default, the registered ip is given by InetAddress.getLocalHost.getHostAddress. Typically, this should return the real ip of the host. However, sometimes (e.g., in EC2), the returned ip is an internal one and can't be connected to from outside. The solution is to explicitly set the host ip to be registered in ZK by setting the "hostname" property in server.properties. In another rare case where the binding host/port is different from the host/port for client connection, you can set advertised.host.name and advertised.port for client connection.
- kafka无法网络访问问题
- 远程访问jupyter notebook--->出现网络无法连接的问题
- kafka无法发送消息问题处理
- kafka无法发送消息问题处理
- Kafka集群无法外网访问问题解决攻略
- Kafka集群无法外网访问问题解决攻略
- VPN网络访问问题
- 网络问题,无法上网
- 应用无法利用GPRS访问网络
- 网络访问消息: 无法显示此页
- J2ME 网络访问 乱码问题
- 无法进行网络认证问题
- linux网络无法连接问题
- zookeeper删除kafka元数据,解决kafka无法消费数据的问题
- kafka问题
- kafka 问题
- mysql 无法进行远程访问的问题
- wamp无法远程访问的问题
- 虚拟机操作(工作记录)
- MongoDB学习 (六):查询
- 1111111111111111
- 折半查找
- Android 开发生僻却实用的知识点 Part 1
- kafka无法网络访问问题
- Android 开发生僻却实用的知识点 Part 2
- CSS里的各种水平垂直居中基础写法心得
- 现代OpenGL(一):我的第一个OpenGL程序
- poj 3075 Tic-Tac-Toe 五子棋模拟
- Android 开发生僻却实用的知识点 Part 3
- 为自己的.net程序配置一个log4net
- maxwell斗胆也来谈谈"学习方法“_转自黑马论坛
- iOS开发之如何跳到系统设置里的WiFi界面