当前位置:   article > 正文

java curator_关于Curator学习过程问题

error o.a.c.f.imps.curatorframeworkimpl - background retry gave up

今天在学习Curator框架,查询了很多别人的例子照写都报错。然后上Curator(http://curator.apache.org/index.html)官网去看example,还是不行,一直报这个错。百思不得其解。

18:08:45.069 [main] WARN o.a.c.retry.ExponentialBackoffRetry - maxRetries too large (2147483647). Pinning to 29

18:08:47.561 [main] INFO o.a.c.f.imps.CuratorFrameworkImpl - Starting

18:08:47.563 [main] DEBUG o.a.curator.CuratorZookeeperClient - Starting

18:08:47.563 [main] DEBUG org.apache.curator.ConnectionState - Starting

18:08:47.563 [main] DEBUG org.apache.curator.ConnectionState - reset

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.5.1-alpha-1693007, built on 07/28/2015 07:19 GMT

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:host.name=BSS-KEVINXIAO.ucloudlink.com

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.7.0_06

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Oracle Corporation

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.home=C:\Program Files\Java\jdk1.7.0_06\jre

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.class.path=C:\Users\xiaojiahao\workspace\spring.boot\target\classes;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-web\1.3.3.RELEASE\spring-boot-starter-web-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter\1.3.3.RELEASE\spring-boot-starter-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot\1.3.3.RELEASE\spring-boot-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-autoconfigure\1.3.3.RELEASE\spring-boot-autoconfigure-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-logging\1.3.3.RELEASE\spring-boot-starter-logging-1.3.3.RELEASE.jar;D:\work_soft\repository\ch\qos\logback\logback-classic\1.1.5\logback-classic-1.1.5.jar;D:\work_soft\repository\ch\qos\logback\logback-core\1.1.5\logback-core-1.1.5.jar;D:\work_soft\repository\org\slf4j\jcl-over-slf4j\1.7.16\jcl-over-slf4j-1.7.16.jar;D:\work_soft\repository\org\slf4j\jul-to-slf4j\1.7.16\jul-to-slf4j-1.7.16.jar;D:\work_soft\repository\org\slf4j\log4j-over-slf4j\1.7.16\log4j-over-slf4j-1.7.16.jar;D:\work_soft\repository\org\yaml\snakeyaml\1.16\snakeyaml-1.16.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-tomcat\1.3.3.RELEASE\spring-boot-starter-tomcat-1.3.3.RELEASE.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-core\8.0.32\tomcat-embed-core-8.0.32.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-el\8.0.32\tomcat-embed-el-8.0.32.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-logging-juli\8.0.32\tomcat-embed-logging-juli-8.0.32.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.0.32\tomcat-embed-websocket-8.0.32.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-validation\1.3.3.RELEASE\spring-boot-starter-validation-1.3.3.RELEASE.jar;D:\work_soft\repository\org\hibernate\hibernate-validator\5.2.4.Final\hibernate-validator-5.2.4.Final.jar;D:\work_soft\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\work_soft\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;D:\work_soft\repository\com\fasterxml\classmate\1.1.0\classmate-1.1.0.jar;D:\work_soft\repository\com\fasterxml\jackson\core\jackson-databind\2.6.5\jackson-databind-2.6.5.jar;D:\work_soft\repository\com\fasterxml\jackson\core\jackson-annotations\2.6.5\jackson-annotations-2.6.5.jar;D:\work_soft\repository\com\fasterxml\jackson\core\jackson-core\2.6.5\jackson-core-2.6.5.jar;D:\work_soft\repository\org\springframework\spring-web\4.2.5.RELEASE\spring-web-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-aop\4.2.5.RELEASE\spring-aop-4.2.5.RELEASE.jar;D:\work_soft\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\work_soft\repository\org\springframework\spring-webmvc\4.2.5.RELEASE\spring-webmvc-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-expression\4.2.5.RELEASE\spring-expression-4.2.5.RELEASE.jar;D:\work_soft\repository\org\quartz-scheduler\quartz\2.1.1\quartz-2.1.1.jar;D:\work_soft\repository\c3p0\c3p0\0.9.1.1\c3p0-0.9.1.1.jar;D:\work_soft\repository\org\slf4j\slf4j-api\1.7.16\slf4j-api-1.7.16.jar;D:\work_soft\repository\org\springframework\spring-context-support\4.2.5.RELEASE\spring-context-support-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-beans\4.2.5.RELEASE\spring-beans-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-context\4.2.5.RELEASE\spring-context-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-core\4.2.5.RELEASE\spring-core-4.2.5.RELEASE.jar;D:\work_soft\repository\org\apache\curator\curator-recipes\3.1.0\curator-recipes-3.1.0.jar;D:\work_soft\repository\org\apache\curator\curator-framework\3.0.0\curator-framework-3.0.0.jar;D:\work_soft\repository\org\apache\curator\curator-client\3.0.0\curator-client-3.0.0.jar;D:\work_soft\repository\org\apache\zookeeper\zookeeper\3.5.1-alpha\zookeeper-3.5.1-alpha.jar;D:\work_soft\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;D:\work_soft\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\work_soft\repository\io\netty\netty\3.7.0.Final\netty-3.7.0.Final.jar;D:\work_soft\repository\net\java\dev\javacc\javacc\5.0\javacc-5.0.jar;D:\work_soft\repository\com\google\guava\guava\16.0.1\guava-16.0.1.jar

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=C:\Program Files\Java\jdk1.7.0_06\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\Program Files (x86)\Common Files\NetSarang;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MongoDB\Server\3.0\bin;D:\apache-maven-3.2.1\bin;C:\Program Files\Java\jdk1.7.0_06\bin;C:\Program Files\Java\jdk1.7.0_06\jre\bin;;E:\eclipse;;C:\Windows\SysWOW64\woc\;.

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=C:\Users\XIAOJI~1\AppData\Local\Temp18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.name=Windows 7

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.arch=x86

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.version=6.1

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.name=xiaojiahao

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.home=C:\Users\xiaojiahao

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.dir=C:\Users\xiaojiahao\workspace\spring.boot

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.memory.free=12MB

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.memory.max=247MB

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.memory.total=15MB

18:08:47.573 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=10.1.14.179:2181 sessionTimeout=60000 [email protected]

18:08:47.575 [main] DEBUG org.apache.zookeeper.ClientCnxn - zookeeper.disableAutoWatchReset is false

18:08:47.601 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.1.14.179/10.1.14.179:2181. Will not attempt to authenticate using SASL (unknown error)

18:08:47.603 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.1.14.179:59820, server: 10.1.14.179/10.1.14.179:2181

18:08:47.606 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Session establishment request sent on 10.1.14.179/10.1.14.179:2181

zookeeper start

18:08:47.638 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server 10.1.14.179/10.1.14.179:2181, sessionid = 0x15431c56de50009, negotiated timeout = 40000

18:08:47.639 [main-EventThread] DEBUG org.apache.curator.ConnectionState - Negotiated session timeout: 40000

18:08:47.643 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: CONNECTED

18:08:47.649 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x15431c56de50009, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 1,4 replyHeader:: 1,42326,-101 request:: '/zookeeper/config,T response::

18:08:47.655 [main-EventThread] INFO o.a.c.framework.imps.EnsembleTracker - New config event received: null

18:08:47.657 [main-EventThread] ERROR o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up

java.lang.NullPointerException: null

at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106)

at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:163)

at org.apache.curator.framework.imps.EnsembleTracker.access$200(EnsembleTracker.java:48)

at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:134)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:829)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:611)

at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:151)

at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:210)

at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:619)

at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:528)

18:08:48.617 [main-SendThread(10.1.14.179:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x15431c56de50009 for server 10.1.14.179/10.1.14.179:2181, unexpected error, closing socket connection and attempting reconnect

java.io.IOException: Xid out of order. Got Xid 3 with err -101 expected Xid 2 for a packet with details: clientPath:null serverPath:null finished:false header:: 2,15 replyHeader:: 0,0,-4 request:: '/head,,v{s{31,s{'world,'anyone}}},0 response::

at org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:928)

at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:99)

at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1236)

18:08:48.638 [main] DEBUG org.apache.curator.RetryLoop - Retry-able exception received

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /head

at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)

at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)

at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1297)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1037)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1020)

at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:66)

at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:99)

at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1017)

at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:501)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:491)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:45)

at com.uclouklink.zookeeper.CuratorZk.main(CuratorZk.java:16)

18:08:48.719 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: SUSPENDED

18:08:49.639 [main] DEBUG org.apache.curator.RetryLoop - Retrying operation

18:08:49.731 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.1.14.179/10.1.14.179:2181. Will not attempt to authenticate using SASL (unknown error)

18:08:49.732 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.1.14.179:59822, server: 10.1.14.179/10.1.14.179:2181

18:08:49.732 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Session establishment request sent on 10.1.14.179/10.1.14.179:2181

18:08:49.733 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server 10.1.14.179/10.1.14.179:2181, sessionid = 0x15431c56de50009, negotiated timeout = 40000

18:08:49.733 [main-EventThread] DEBUG org.apache.curator.ConnectionState - Negotiated session timeout: 40000

18:08:49.733 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: RECONNECTED

18:08:49.734 [main-SendThread(10.1.14.179:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x15431c56de50009 for server 10.1.14.179/10.1.14.179:2181, unexpected error, closing socket connection and attempting reconnect

java.io.IOException: Xid out of order. Got Xid 5 with err -101 expected Xid 4 for a packet with details: clientPath:null serverPath:null finished:false header:: 4,15 replyHeader:: 0,0,-4 request:: '/head,,v{s{31,s{'world,'anyone}}},0 response::

at org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:928)

at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:99)

at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1236)

18:08:49.734 [main] DEBUG org.apache.curator.RetryLoop - Retry-able exception received

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /head

at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)

at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)

at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1297)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1037)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1020)

at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:66)

at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:99)

at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1017)

at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:501)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:491)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:45)

at com.uclouklink.zookeeper.CuratorZk.main(CuratorZk.java:16)

18:08:49.835 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: SUSPENDED

18:08:51.735 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.1.14.179/10.1.14.179:2181. Will not attempt to authenticate using SASL (unknown error)

18:08:51.737 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.1.14.179:59823, server: 10.1.14.179/10.1.14.179:2181

18:08:51.737 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Session establishment request sent on 10.1.14.179/10.1.14.179:2181

18:08:51.740 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server 10.1.14.179/10.1.14.179:2181, sessionid = 0x15431c56de50009, negotiated timeout = 40000

18:08:51.741 [main-EventThread] DEBUG org.apache.curator.ConnectionState - Negotiated session timeout: 40000

18:08:51.741 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: RECONNECTED

18:08:51.745 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x15431c56de50009, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 6,4 replyHeader:: 6,42326,-101 request:: '/zookeeper/config,T response::

18:08:51.745 [main-EventThread] INFO o.a.c.framework.imps.EnsembleTracker - New config event received: null

18:08:51.746 [main-EventThread] ERROR o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up

java.lang.NullPointerException: null

at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106)

at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:163)

at org.apache.curator.framework.imps.EnsembleTracker.access$200(EnsembleTracker.java:48)

at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:134)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:829)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:611)

at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:151)

at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:210)

at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:619)

at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:528)

18:08:51.840 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x15431c56de50009, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 7,4 replyHeader:: 7,42326,-101 request:: '/zookeeper/config,T response::

18:08:51.840 [main-EventThread] INFO o.a.c.framework.imps.EnsembleTracker - New config event received: null

18:08:51.841 [main-EventThread] ERROR o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up

java.lang.NullPointerException: null

at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106)

at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:163)

at org.apache.curator.framework.imps.EnsembleTracker.access$200(EnsembleTracker.java:48)

at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:134)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:829)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:611)

at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:151)

at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:210)

at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:619)

at org.apache.z18:08:45.069 [main] WARN o.a.c.retry.ExponentialBackoffRetry - maxRetries too large (2147483647). Pinning to 29

18:08:47.561 [main] INFO o.a.c.f.imps.CuratorFrameworkImpl - Starting

18:08:47.563 [main] DEBUG o.a.curator.CuratorZookeeperClient - Starting

18:08:47.563 [main] DEBUG org.apache.curator.ConnectionState - Starting

18:08:47.563 [main] DEBUG org.apache.curator.ConnectionState - reset

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:zookeeper.version=3.5.1-alpha-1693007, built on 07/28/2015 07:19 GMT

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:host.name=BSS-KEVINXIAO.ucloudlink.com

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.version=1.7.0_06

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.vendor=Oracle Corporation

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.home=C:\Program Files\Java\jdk1.7.0_06\jre

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.class.path=C:\Users\xiaojiahao\workspace\spring.boot\target\classes;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-web\1.3.3.RELEASE\spring-boot-starter-web-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter\1.3.3.RELEASE\spring-boot-starter-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot\1.3.3.RELEASE\spring-boot-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-autoconfigure\1.3.3.RELEASE\spring-boot-autoconfigure-1.3.3.RELEASE.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-logging\1.3.3.RELEASE\spring-boot-starter-logging-1.3.3.RELEASE.jar;D:\work_soft\repository\ch\qos\logback\logback-classic\1.1.5\logback-classic-1.1.5.jar;D:\work_soft\repository\ch\qos\logback\logback-core\1.1.5\logback-core-1.1.5.jar;D:\work_soft\repository\org\slf4j\jcl-over-slf4j\1.7.16\jcl-over-slf4j-1.7.16.jar;D:\work_soft\repository\org\slf4j\jul-to-slf4j\1.7.16\jul-to-slf4j-1.7.16.jar;D:\work_soft\repository\org\slf4j\log4j-over-slf4j\1.7.16\log4j-over-slf4j-1.7.16.jar;D:\work_soft\repository\org\yaml\snakeyaml\1.16\snakeyaml-1.16.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-tomcat\1.3.3.RELEASE\spring-boot-starter-tomcat-1.3.3.RELEASE.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-core\8.0.32\tomcat-embed-core-8.0.32.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-el\8.0.32\tomcat-embed-el-8.0.32.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-logging-juli\8.0.32\tomcat-embed-logging-juli-8.0.32.jar;D:\work_soft\repository\org\apache\tomcat\embed\tomcat-embed-websocket\8.0.32\tomcat-embed-websocket-8.0.32.jar;D:\work_soft\repository\org\springframework\boot\spring-boot-starter-validation\1.3.3.RELEASE\spring-boot-starter-validation-1.3.3.RELEASE.jar;D:\work_soft\repository\org\hibernate\hibernate-validator\5.2.4.Final\hibernate-validator-5.2.4.Final.jar;D:\work_soft\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;D:\work_soft\repository\org\jboss\logging\jboss-logging\3.3.0.Final\jboss-logging-3.3.0.Final.jar;D:\work_soft\repository\com\fasterxml\classmate\1.1.0\classmate-1.1.0.jar;D:\work_soft\repository\com\fasterxml\jackson\core\jackson-databind\2.6.5\jackson-databind-2.6.5.jar;D:\work_soft\repository\com\fasterxml\jackson\core\jackson-annotations\2.6.5\jackson-annotations-2.6.5.jar;D:\work_soft\repository\com\fasterxml\jackson\core\jackson-core\2.6.5\jackson-core-2.6.5.jar;D:\work_soft\repository\org\springframework\spring-web\4.2.5.RELEASE\spring-web-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-aop\4.2.5.RELEASE\spring-aop-4.2.5.RELEASE.jar;D:\work_soft\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;D:\work_soft\repository\org\springframework\spring-webmvc\4.2.5.RELEASE\spring-webmvc-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-expression\4.2.5.RELEASE\spring-expression-4.2.5.RELEASE.jar;D:\work_soft\repository\org\quartz-scheduler\quartz\2.1.1\quartz-2.1.1.jar;D:\work_soft\repository\c3p0\c3p0\0.9.1.1\c3p0-0.9.1.1.jar;D:\work_soft\repository\org\slf4j\slf4j-api\1.7.16\slf4j-api-1.7.16.jar;D:\work_soft\repository\org\springframework\spring-context-support\4.2.5.RELEASE\spring-context-support-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-beans\4.2.5.RELEASE\spring-beans-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-context\4.2.5.RELEASE\spring-context-4.2.5.RELEASE.jar;D:\work_soft\repository\org\springframework\spring-core\4.2.5.RELEASE\spring-core-4.2.5.RELEASE.jar;D:\work_soft\repository\org\apache\curator\curator-recipes\3.1.0\curator-recipes-3.1.0.jar;D:\work_soft\repository\org\apache\curator\curator-framework\3.0.0\curator-framework-3.0.0.jar;D:\work_soft\repository\org\apache\curator\curator-client\3.0.0\curator-client-3.0.0.jar;D:\work_soft\repository\org\apache\zookeeper\zookeeper\3.5.1-alpha\zookeeper-3.5.1-alpha.jar;D:\work_soft\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;D:\work_soft\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;D:\work_soft\repository\io\netty\netty\3.7.0.Final\netty-3.7.0.Final.jar;D:\work_soft\repository\net\java\dev\javacc\javacc\5.0\javacc-5.0.jar;D:\work_soft\repository\com\google\guava\guava\16.0.1\guava-16.0.1.jar

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.library.path=C:\Program Files\Java\jdk1.7.0_06\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\Program Files (x86)\Common Files\NetSarang;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\TortoiseSVN\bin;C:\Program Files\MongoDB\Server\3.0\bin;D:\apache-maven-3.2.1\bin;C:\Program Files\Java\jdk1.7.0_06\bin;C:\Program Files\Java\jdk1.7.0_06\jre\bin;;E:\eclipse;;C:\Windows\SysWOW64\woc\;.

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.io.tmpdir=C:\Users\XIAOJI~1\AppData\Local\Temp18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:java.compiler=

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.name=Windows 7

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.arch=x86

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.version=6.1

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.name=xiaojiahao

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.home=C:\Users\xiaojiahao

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:user.dir=C:\Users\xiaojiahao\workspace\spring.boot

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.memory.free=12MB

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.memory.max=247MB

18:08:47.571 [main] INFO org.apache.zookeeper.ZooKeeper - Client environment:os.memory.total=15MB

18:08:47.573 [main] INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=10.1.14.179:2181 sessionTimeout=60000 [email protected]

18:08:47.575 [main] DEBUG org.apache.zookeeper.ClientCnxn - zookeeper.disableAutoWatchReset is false

18:08:47.601 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.1.14.179/10.1.14.179:2181. Will not attempt to authenticate using SASL (unknown error)

18:08:47.603 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.1.14.179:59820, server: 10.1.14.179/10.1.14.179:2181

18:08:47.606 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Session establishment request sent on 10.1.14.179/10.1.14.179:2181

zookeeper start

18:08:47.638 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server 10.1.14.179/10.1.14.179:2181, sessionid = 0x15431c56de50009, negotiated timeout = 40000

18:08:47.639 [main-EventThread] DEBUG org.apache.curator.ConnectionState - Negotiated session timeout: 40000

18:08:47.643 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: CONNECTED

18:08:47.649 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x15431c56de50009, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 1,4 replyHeader:: 1,42326,-101 request:: '/zookeeper/config,T response::

18:08:47.655 [main-EventThread] INFO o.a.c.framework.imps.EnsembleTracker - New config event received: null

18:08:47.657 [main-EventThread] ERROR o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up

java.lang.NullPointerException: null

at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106)

at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:163)

at org.apache.curator.framework.imps.EnsembleTracker.access$200(EnsembleTracker.java:48)

at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:134)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:829)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:611)

at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:151)

at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:210)

at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:619)

at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:528)

18:08:48.617 [main-SendThread(10.1.14.179:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x15431c56de50009 for server 10.1.14.179/10.1.14.179:2181, unexpected error, closing socket connection and attempting reconnect

java.io.IOException: Xid out of order. Got Xid 3 with err -101 expected Xid 2 for a packet with details: clientPath:null serverPath:null finished:false header:: 2,15 replyHeader:: 0,0,-4 request:: '/head,,v{s{31,s{'world,'anyone}}},0 response::

at org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:928)

at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:99)

at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1236)

18:08:48.638 [main] DEBUG org.apache.curator.RetryLoop - Retry-able exception received

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /head

at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)

at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)

at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1297)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1037)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1020)

at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:66)

at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:99)

at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1017)

at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:501)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:491)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:45)

at com.uclouklink.zookeeper.CuratorZk.main(CuratorZk.java:16)

18:08:48.719 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: SUSPENDED

18:08:49.639 [main] DEBUG org.apache.curator.RetryLoop - Retrying operation

18:08:49.731 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.1.14.179/10.1.14.179:2181. Will not attempt to authenticate using SASL (unknown error)

18:08:49.732 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.1.14.179:59822, server: 10.1.14.179/10.1.14.179:2181

18:08:49.732 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Session establishment request sent on 10.1.14.179/10.1.14.179:2181

18:08:49.733 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server 10.1.14.179/10.1.14.179:2181, sessionid = 0x15431c56de50009, negotiated timeout = 40000

18:08:49.733 [main-EventThread] DEBUG org.apache.curator.ConnectionState - Negotiated session timeout: 40000

18:08:49.733 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: RECONNECTED

18:08:49.734 [main-SendThread(10.1.14.179:2181)] WARN org.apache.zookeeper.ClientCnxn - Session 0x15431c56de50009 for server 10.1.14.179/10.1.14.179:2181, unexpected error, closing socket connection and attempting reconnect

java.io.IOException: Xid out of order. Got Xid 5 with err -101 expected Xid 4 for a packet with details: clientPath:null serverPath:null finished:false header:: 4,15 replyHeader:: 0,0,-4 request:: '/head,,v{s{31,s{'world,'anyone}}},0 response::

at org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:928)

at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:99)

at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)

at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1236)

18:08:49.734 [main] DEBUG org.apache.curator.RetryLoop - Retry-able exception received

org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /head

at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)

at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)

at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:1297)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1037)

at org.apache.curator.framework.imps.CreateBuilderImpl$17.call(CreateBuilderImpl.java:1020)

at org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:66)

at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:99)

at org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:1017)

at org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:501)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:491)

at org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:45)

at com.uclouklink.zookeeper.CuratorZk.main(CuratorZk.java:16)

18:08:49.835 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: SUSPENDED

18:08:51.735 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Opening socket connection to server 10.1.14.179/10.1.14.179:2181. Will not attempt to authenticate using SASL (unknown error)

18:08:51.737 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Socket connection established, initiating session, client: /10.1.14.179:59823, server: 10.1.14.179/10.1.14.179:2181

18:08:51.737 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Session establishment request sent on 10.1.14.179/10.1.14.179:2181

18:08:51.740 [main-SendThread(10.1.14.179:2181)] INFO org.apache.zookeeper.ClientCnxn - Session establishment complete on server 10.1.14.179/10.1.14.179:2181, sessionid = 0x15431c56de50009, negotiated timeout = 40000

18:08:51.741 [main-EventThread] DEBUG org.apache.curator.ConnectionState - Negotiated session timeout: 40000

18:08:51.741 [main-EventThread] INFO o.a.c.f.state.ConnectionStateManager - State change: RECONNECTED

18:08:51.745 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x15431c56de50009, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 6,4 replyHeader:: 6,42326,-101 request:: '/zookeeper/config,T response::

18:08:51.745 [main-EventThread] INFO o.a.c.framework.imps.EnsembleTracker - New config event received: null

18:08:51.746 [main-EventThread] ERROR o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up

java.lang.NullPointerException: null

at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106)

at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:163)

at org.apache.curator.framework.imps.EnsembleTracker.access$200(EnsembleTracker.java:48)

at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:134)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:829)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:611)

at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:151)

at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:210)

at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:619)

at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:528)

18:08:51.840 [main-SendThread(10.1.14.179:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x15431c56de50009, packet:: clientPath:/zookeeper/config serverPath:/zookeeper/config finished:false header:: 7,4 replyHeader:: 7,42326,-101 request:: '/zookeeper/config,T response::

18:08:51.840 [main-EventThread] INFO o.a.c.framework.imps.EnsembleTracker - New config event received: null

18:08:51.841 [main-EventThread] ERROR o.a.c.f.imps.CuratorFrameworkImpl - Background exception was not retry-able or retry gave up

java.lang.NullPointerException: null

at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:106)

at org.apache.curator.framework.imps.EnsembleTracker.processConfigData(EnsembleTracker.java:163)

at org.apache.curator.framework.imps.EnsembleTracker.access$200(EnsembleTracker.java:48)

at org.apache.curator.framework.imps.EnsembleTracker$2.processResult(EnsembleTracker.java:134)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.sendToBackgroundCallback(CuratorFrameworkImpl.java:829)

at org.apache.curator.framework.imps.CuratorFrameworkImpl.processBackgroundOperation(CuratorFrameworkImpl.java:611)

at org.apache.curator.framework.imps.WatcherRemovalFacade.processBackgroundOperation(WatcherRemovalFacade.java:151)

at org.apache.curator.framework.imps.GetConfigBuilderImpl$2.processResult(GetConfigBuilderImpl.java:210)

at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:619)

at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:528)

ookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:528)

后来在官网查询之后发现官网写了这句话,意思大概是Curator2.x.x-兼容两个zk3.4.x和zk3.5.x,Curator3.x.x-兼容兼容zk

3.5。The are currently two released versions of Curator, 2.x.x and 3.x.x:

Curator 2.x.x - compatible with both ZooKeeper 3.4.x and ZooKeeper 3.5.x

Curator 3.x.x - compatible only with ZooKeeper 3.5.x and includes support for new features such as dynamic reconfiguration, etc.       改完之后就可以。

org.apache.curator

curator-framework

2.8.0

想起了之前玩kafka的时候也是遇到不兼容的问题,结论玩中间件要记得版本问题。

原文:http://blog.csdn.net/xiaojiahao_kevin/article/details/51203083

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/674411
推荐阅读
相关标签
  

闽ICP备14008679号