Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 76861 invoked from network); 20 May 2010 12:21:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 May 2010 12:21:37 -0000 Received: (qmail 33648 invoked by uid 500); 20 May 2010 12:21:36 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 33575 invoked by uid 500); 20 May 2010 12:21:35 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 33567 invoked by uid 99); 20 May 2010 12:21:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 12:21:35 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gregory.haskins@gmail.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 May 2010 12:21:28 +0000 Received: by vws18 with SMTP id 18so370850vws.35 for ; Thu, 20 May 2010 05:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=AQrgC25qySalSzYEFZ+wcKOWT3BdjJ3mtmTdp3kKG1c=; b=ZBkW1RXXjrFZLo8Y5nr78pbK8wPr2eENnbrAz+Iom8R9S8041LlyIn1Vl2cSxvhqI4 7+BBVc/cZHgMG2/tfAVwYNU9SEbmNa2t+WCrQq4A/CgnZYSs0yd4Je4TUEX5wrhcKXoA R2rUO1vZF4/cMmy1+llJpa1hhebuB01o+RxHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=Fk5UuAutLv3Gw8BH3i2Erq1ny42pn7HDppkcR7/ftkoL+SL9cfsX+Z03meHyNu3RQ8 hIrRscSJKfID62GS0DlBSpj1swkf2/jphV4I08yGm390mNYAYnOfJzKPCz25AeNrKiqy GVWLN4OZ2MkDeIurlON0Czse3hCabxHwj55uk= Received: by 10.220.62.199 with SMTP id y7mr5208337vch.220.1274358067195; Thu, 20 May 2010 05:21:07 -0700 (PDT) Received: from gregs-laptop.laurelwood.net (24-183-187-110.dhcp.oxfr.ma.charter.com [24.183.187.110]) by mx.google.com with ESMTPS id x6sm39539017vco.11.2010.05.20.05.21.05 (version=SSLv3 cipher=RC4-MD5); Thu, 20 May 2010 05:21:06 -0700 (PDT) Message-ID: <4BF52930.3020908@gmail.com> Date: Thu, 20 May 2010 08:21:04 -0400 From: Gregory Haskins User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: zookeeper-user@hadoop.apache.org Subject: problem connecting to zookeeper server X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB90CC313576C8678D8FCBDF5" --------------enigB90CC313576C8678D8FCBDF5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, ZooKeeper newbie here, so probably simple 'pilot error', but yet I am stuck so any help appreciated. I am trying to stand up a zookeeper environment so I can check things out. I have an opensuse 11.2 virtual machine that I run the server in, and then I try to write a java client to connect to it from an OSX 10.6.3 machine. No matter what combination of v3.2.2 or v.3.3.1 I try (e.g. both client and server running v3.2.2, v3.3.1, or mixed) I get an error similar to the following: Client side: Exception in thread "main" org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode =3D ConnectionLoss for /myapp at org.apache.zookeeper.KeeperException.create(zookeeper:KeeperException.jav= a):90) at org.apache.zookeeper.KeeperException.create(zookeeper:KeeperException.jav= a):42) at org.apache.zookeeper.ZooKeeper.create(zookeeper:ZooKeeper.java):608) at com.novell.lsg.zookeeperclient.App.run(App.java:32) at com.novell.lsg.zookeeperclient.App.main(App.java:50) Server side: 2010-05-20 07:59:31,517 - WARN=20 [NIOServerCxn.Factory:2181:NIOServerCnxn@518] - Exception causing close of session 0x0 due to java.io.IOException: Read error 2010-05-20 07:59:31,518 - INFO=20 [NIOServerCxn.Factory:2181:NIOServerCnxn@857] - closing session:0x0 NIOServerCnxn: java.nio.channels.SocketChannel[connected local=3D/192.168.1.124:2181 remote=3D/192.168.1.141:50135] The server side error varies slightly depending on the versions in use at the time, but its always related to problems reading the client stream. In this particular run, I have v3.2.2 running on both sides.=20 Any help appreciated! In case it matters, here is my client package com.novell.lsg.zookeeperclient; import java.util.List; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooKeeper; /** * Hello world! * */ public class App implements Watcher { ZooKeeper zk; boolean dead =3D false; public App() throws Exception { zk =3D new ZooKeeper("192.168.1.124:2181", 0, this); } private void getChildren() throws Exception { List children =3D zk.getChildren("/", true); System.out.println("Current child list:"); for (String child : children) { System.out.println(child); } } private void run() throws Exception { String znode =3D zk.create("/myapp", null, null, CreateMode.EPHEMERAL_SEQUENTIAL); System.out.println("Created " + znode); getChildren(); try { synchronized (this) { while (!this.dead) { wait(); } } } catch (InterruptedException e) { } System.out.println("Exiting"); } public static void main(String[] args) throws Exception { new App().run(); } public void process(WatchedEvent event) { System.out.println("Event: " + event.getType().toString()); } } --------------enigB90CC313576C8678D8FCBDF5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkv1KTAACgkQP5K2CMvXmqHKQQCeKJAFVD5sXoD9hbHnvOo8kUJs gOAAn1RYBJKGnvL5Mo7eaJNl6V5CFWRz =5iB0 -----END PGP SIGNATURE----- --------------enigB90CC313576C8678D8FCBDF5--