admin管理员组文章数量:1608631
代码: Properties properties = new Properties(); properties.put("bootstrap.servers","192.168.140.129:9092"); properties.put("key.serializer", "org.apache.kafkamon.serialization.StringSerializer"); properties.put("value.serializer", "org.apache.kafkamon.serialization.StringSerializer");
kafka连接不了
22:24:42.989 [kafka-producer-network-thread | producer-1] DEBUG org.apache.kafkamonwork.Selector - [Producer clientId=producer-1] Connection with localhost/127.0.0.1 disconnected
java.ConnectException: Connection refused: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.kafkamonwork.PlaintextTransportLayer.finishConnect(PlaintextTransportLayer.java:50)
at org.apache.kafkamonwork.KafkaChannel.finishConne
本文标签: NETJavaKafkaConnectExceptioninformation
版权声明:本文标题:kafka远程连接失败 java.net.ConnectException: Connection refused: no further information 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1728548812a1163181.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论