Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0625FD4F9 for ; Fri, 9 Nov 2012 00:53:23 +0000 (UTC) Received: (qmail 95903 invoked by uid 500); 9 Nov 2012 00:53:21 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 95833 invoked by uid 500); 9 Nov 2012 00:53:21 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 95818 invoked by uid 500); 9 Nov 2012 00:53:21 -0000 Delivered-To: apmail-hadoop-zookeeper-user@hadoop.apache.org Received: (qmail 95814 invoked by uid 99); 9 Nov 2012 00:53:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 00:53:21 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of skye@cloudera.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2012 00:53:17 +0000 Received: by mail-la0-f48.google.com with SMTP id o2so962404lag.35 for ; Thu, 08 Nov 2012 16:52:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=oBU86zJIQlNilDvNhurSbON7Df/WZDwepFfTY96633c=; b=RYlrDtKrx5lGk4cqqhED/wpSfPz4iOFwPfJYKGu5BG7FI0svAIEIM5ELJiUrSR3FYm wgERDjWOqDBGhyXKZcBu8MIBVdSPvOo3JqbCwWFXQcWmkUn2KujBV2ybfYwx2HLiWIxj 6vSjTPGSkkpu9ZlqXBVT1+KoCaEsy4NfuUjVXkWsvUM76wq0/Vx017bglge/PLA/ISM4 zecrwoDWfvb/Wyp3HfIJxNu5yIib/tMZXyS6d0ckWZyfFRZ+jaKDdI2gtiGg0Njjjffq sA0oL1XdEN7BvZHe7SbsF50J9xvcdWigBnz75A/KlkM+yBqz1omqGM8a2Z/NjU98mfzI JgxA== Received: by 10.152.106.212 with SMTP id gw20mr9235128lab.8.1352422375346; Thu, 08 Nov 2012 16:52:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.65.70 with HTTP; Thu, 8 Nov 2012 16:52:35 -0800 (PST) In-Reply-To: <1352417119858-7578167.post@n2.nabble.com> References: <1352417119858-7578167.post@n2.nabble.com> From: Skye Wanderman-Milne Date: Thu, 8 Nov 2012 16:52:35 -0800 Message-ID: Subject: Re: Zookeeper client exception when executing any command in client To: user@zookeeper.apache.org Cc: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d0420a69544d38a04ce055f14 X-Gm-Message-State: ALoCoQki5IzsXZYxtFh4QE+ECF5TUTxb0Xh/9cKU42fi7hXWXAzP87FtveWCdVhW/WZXTkHSki6/ X-Virus-Checked: Checked by ClamAV on apache.org --f46d0420a69544d38a04ce055f14 Content-Type: text/plain; charset=ISO-8859-1 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). Skye On Thu, Nov 8, 2012 at 3:25 PM, tanzir wrote: > This is my configuration file: > > tickTime=2000 > initLimit=20 > syncLimit=5 > dataDir=./store/data > clientPort=2181 > > server.1=A:3181:4181 > server.2=B:3181:4181 > server.3=C:3181:4181 > server.4=D:3181:4181 > server.5=E:3181:4181 > > 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 > > WATCHER:: > > WatchedEvent state:Disconnected type:None path:null > Exception in thread "main" > org.apache.zookeeper.KeeperException$ConnectionLossException: > KeeperErrorCode = ConnectionLoss for / > at > org.apache.zookeeper.KeeperException.create(KeeperException.java:99) > at > org.apache.zookeeper.KeeperException.create(KeeperException.java:51) > at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1463) > at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1491) > at > org.apache.zookeeper.ZooKeeperMain.processZKCmd(ZooKeeperMain.java:725) > at > org.apache.zookeeper.ZooKeeperMain.processCmd(ZooKeeperMain.java:593) > at > org.apache.zookeeper.ZooKeeperMain.executeLine(ZooKeeperMain.java:365) > 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: > http://zookeeper-user.578899.n2.nabble.com/Zookeeper-client-exception-when-executing-any-command-in-client-tp7578167.html > Sent from the zookeeper-user mailing list archive at Nabble.com. > --f46d0420a69544d38a04ce055f14--