-Re: Zookeeper client exception when executing any command in client
Skye Wanderman-Milne 2012-11-09, 00:52
What version of ZooKeeper are you running? Running version 3.4.4 with Java
7 can cause the kind of issue you're experiencing. Try using Java 6 (from
Oracle, OpenJDK experiences the same issues as Java 7), or try running the
ZooKeeper 3.4.5 release candidate at
http://people.apache.org/~mahadev/zookeeper-3.4.5-candidate-1/ (or wait for
the official release).
On Thu, Nov 8, 2012 at 3:25 PM, tanzir <[EMAIL PROTECTED]>wrote:
> This is my configuration file:
> After this, I started all of the servers. Then I started client in one of
> those nodes. It shows connected but as soon as I enter any command it threw
> exception and stopped.
> WatchedEvent state:SyncConnected type:None path:null
> [zk: 127.0.0.1:2181(CONNECTED) 0] ls /
> 2012-11-08 22:35:01,418 [myid:] - INFO
> [main-SendThread(localhost:2181):ClientCnxn$SendThread@1083] - Client
> session timed out, have not heard from server in 20000ms for sessionid
> 0x13ae22116e50001, closing socket connection and attempting reconnect
> WatchedEvent state:Disconnected type:None path:null
> Exception in thread "main"
> KeeperErrorCode = ConnectionLoss for /
> at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1463)
> at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1491)
> at org.apache.zookeeper.ZooKeeperMain.run(ZooKeeperMain.java:323)
> at org.apache.zookeeper.ZooKeeperMain.main(ZooKeeperMain.java:282)
> - Required ports are open (2181, 3181, 4181)
> - myid is being placed and has correct id corresponding to IP address
> - Java version: java version "1.7.0_09" Java(TM) SE Runtime Environment
> (build 1.7.0_09-b05)
> Any idea whats going on?
> Thanks in advance.
> View this message in context:
> Sent from the zookeeper-user mailing list archive at Nabble.com.