zookeeper 연결 오류

9311 단어 빅 데이터
09:48:41,517  INFO ZooKeeper:100 - Client environment:user.name=cheng
09:48:41,517  INFO ZooKeeper:100 - Client environment:user.home=C:\Users\cheng
09:48:41,518  INFO ZooKeeper:100 - Client environment:user.dir=E:\eclipseworkspace01\pinyougou-parent\pinyougou-search-service
09:48:41,519  INFO ZooKeeper:438 - Initiating client connection, connectString=192.168.25.130:2881,192.168.25.130:2882,192.168.25.130:2883 sessionTimeout=60000 watcher=org.I0Itec.zkclient.ZkClient@25275eea
09:48:41,541  INFO ClientCnxn:1032 - Opening socket connection to server 192.168.25.130/192.168.25.130:2883. Will not attempt to authenticate using SASL (unknown error)
09:48:42,550  WARN ClientCnxn:1162 - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.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.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
09:48:42,662  INFO ClientCnxn:1032 - Opening socket connection to server 192.168.25.130/192.168.25.130:2882. Will not attempt to authenticate using SASL (unknown error)
09:48:42,662  INFO ClientCnxn:876 - Socket connection established to 192.168.25.130/192.168.25.130:2882, initiating session
09:48:46,541  INFO ZkEventThread:82 - Terminate ZkClient event thread.
09:49:02,664  WARN ClientCnxn:1108 - Client session timed out, have not heard from server in 20002ms for sessionid 0x0
09:49:02,768  INFO ZooKeeper:684 - Session: 0x0 closed
09:49:02,772  WARN XmlWebApplicationContext:546 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.jms.listener.DefaultMessageListenerContainer#0' defined in file [E:\eclipseworkspace01\pinyougou-parent\pinyougou-search-service\target\classes\spring\applicationContext-jms-consumer.xml]: Cannot resolve reference to bean 'itemSearchListener' while setting bean property 'messageListener'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemSearchListener': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.pinyougou.search.service.ItemSearchService com.pinyougou.search.service.impl.ItemSearchListener.itemSearchService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemSearchServiceImpl' defined in file [E:\eclipseworkspace01\pinyougou-parent\pinyougou-search-service\target\classes\com\pinyougou\search\service\impl\ItemSearchServiceImpl.class]: Initialization of bean failed; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
09:49:02,776  INFO ClientCnxn:519 - EventThread shut down for session: 0x0
09:49:02,780 ERROR ContextLoader:353 - Context initialization failed

오류 원인: eclipse 에서 zookeeper 포트 를 연결 하 는 중 오류 가 발생 했 습 니 다. zookeeper 클 라 이언 트 포트 가 아 닌 zookeeper 클 라 이언 트 포트 로 설정 해 야 합 니 다.zookeeper 클 러 스 터 는 3 개의 포트 zoo. cfg 와 관련 되 어 있 습 니 다. server. 1 = 192.168.25.30: 2881: 3881, 2881 은 zookeeper 통신 포트 이 고 3881 은 선거 포트 이 며 clienPort 는 클 라 이언 트 가 zookeeper 포트 를 연결 합 니 다.

좋은 웹페이지 즐겨찾기