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