Spring Boot:无法在超时内连接到zookeeper服务器

时间:2017-09-28 18:12:03

标签: spring spring-boot spring-cloud spring-cloud-stream

我正在使用spring-cloud-stream-binder-kafka-1.1.1.RELEASE.jar在Spring Boot应用程序中实现Kafka。

java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_101]
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_101]
    at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) ~[zookeeper-3.4.6.jar:3.4.6-1569965]

这问题解决了吗? https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/12

如果不是什么工作?

0 个答案:

没有答案