关于Curator学习过程问题

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

<span style="font-size:24px;">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=<NA>
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.<init>(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.<init>(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.<init>(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=<NA>
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.<init>(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.<init>(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.<init>(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)
</span>

后来在官网查询之后发现官网写了这句话,意思大概是Curator 2.x.x-兼容两个zk 3.4.x 和zk 3.5.x,Curator 3.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.

改完之后就可以。

<span style="font-size:24px;"><dependency>
	<groupId>org.apache.curator</groupId>
	<artifactId>curator-framework</artifactId>
	<version>2.8.0</version>
</dependency>
</span>

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

时间: 2024-11-05 18:52:56

关于Curator学习过程问题的相关文章

dubbo学习过程、使用经验分享及实现原理简单介绍

一.前言 部门去年年中开始各种改造,第一步是模块服务化,这边初选dubbo试用在一些非重要模块上,慢慢引入到一些稍微重要的功能上,半年时间,学习过程及线上使用遇到的些问题在此总结下. 整理这篇文章差不多花了两天半时间,请尊重劳动成果,如转载请注明出处http://blog.csdn.net/hzzhoushaoyu/article/details/43273099 二.什么是dubbo Dubbo是阿里巴巴提供的开源的SOA服务化治理的技术框架,据说只是剖出来的一部分开源的,但一些基本的需求已经

【dubbo基础】dubbo学习过程、使用经验分享及实现原理简单介绍

一.前言 部门去年年中开始各种改造,第一步是模块服务化,这边初选dubbo试用在一些非重要模块上,慢慢引入到一些稍微重要的功能上,半年时间,学习过程及线上使用遇到的些问题在此总结下. 整理这篇文章差不多花了两天半时间,请尊重劳动成果,如转载请注明出处http://blog.csdn.NET/hzzhoushaoyu/article/details/43273099 二.什么是dubbo Dubbo是阿里巴巴提供的开源的SOA服务化治理的技术框架,据说只是剖出来的一部分开源的,但一些基本的需求已经

ZooKeeper和Curator相关经验总结

一.关于ZooKeeper的watch用法,需要注意 详细说明如下: ZooKeeper Watches All of the read operations in ZooKeeper - getData(), getChildren(), and exists() - have the option of setting a watch as a side effect. Here is ZooKeeper's definition of a watch: a watch event is o

03.Curator深入使用

1.Apache Curator简介 Curator提供了一套Java类库,可以更容易的使用ZooKeeper.ZooKeeper本身提供了Java Client的访问类,但是API太底层,不宜使用,易出错.Curator提供了三个组件.Curator client用来替代ZOoKeeper提供的类,它封装了底层的管理并提供了一些有用的工具.Curator framework提供了高级的API来简化ZooKeeper的使用.它增加了很多基于ZooKeeper的特性,帮助管理ZooKeeper的连

zookeeper使用curator进行选主(Leader)

在分布式系统设计中,选主是一个常见的场景.选主是一个这样的过程,通过选主,主节点被选择出来控制其他节点或者是分配任务. 选主算法要满足的几个特征: 1)各个节点均衡的获得成为主节点的权利,一旦主节点被选出,其他的节点可以感知到谁是主节点,被服从分配. 2)主节点是唯一存在的 3)一旦主节点失效,宕机或者断开连接,其他的节点能够感知,并且重新进行选主算法. zookeeper实现了安全可靠的选主机制. 作为zookeeper的高级api封装库curator选主算法主要有以下两个:Leader La

9天C#转Java学习过程,自己记录一下

其实没有完整的9天,就是连续每天花点时间,过程so frustrated,踩坑无数...下面是学习过程的记录 第1天 开始正式学习JavaEE,已完成: 1. Tomcat安装: 2. Tomcat配置.完成了IIS占用的80端口停用,将Tomcat监听端口改为80端口,然后修改hosts,增加解析www.javademo.dev到127.0.0.1.然后写了一个最简单hello-world html页面,在浏览器输入前面的网址可以访问.Tomcat/conf/server.xml配置如下: <

Apache Curator入门实战

版权声明:本文为博主原创文章,未经博主允许不得转载. 目录(?)[+] Apache Curator入门实战 Curator是Netflix公司开源的一个Zookeeper客户端,与Zookeeper提供的原生客户端相比,Curator的抽象层次更高,简化了Zookeeper客户端的开发量. 1.Zookeeper安装部署 Zookeeper的部署很简单,如果已经有Java运行环境的话,下载tarball解压后即可运行. [root@vm Temp]$ wget http://mirror.bi

信息安全系统设计基础——第一周学习过程记录与总结体会

第一周学习过程记录与总结体会 第1节    Linux系统简介 1.Linux操作系统:即内核和系统调用两层 2.Linux与Windows的不同: (1)免费与收费 (2)软件与支持 (3)安全性 (4)使用习惯 (5)可定制性 (6)应用范畴 (7)各自缺乏的 3.如何学习Linux (1)明确态度,形成良好学习心态 (2)重视基础,从头学习 第2节  基本概念及操作 1.桌面环境介绍 通过内核—服务器(X.org) —客户端(X.client)实现完整的桌面环境,与Windows不同. 2

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 我的linux学习过程 -环境变

ls 这个命令其实很简单!但他是如何运行的呢! 我现在的理解应该是 把 ls='ls --color=auto'这句话写在了一个配置文件中! 当我们 运行 ls 的时候 其实运行的是 ls --color=auto这个命令! 所以 ls 这个变量就是环境变量!那我们该如何配置环境变量呢! 两种方式 1:配置临时环境变量!方法  alias ls='ls --color=atuo' 2:配置永久环境变量!方法  讲 alias ls='ls --color=auto'这句话写到配置文件中去 配置文