Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 2005 invoked from network); 9 Dec 2010 19:24:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 19:24:30 -0000 Received: (qmail 42494 invoked by uid 500); 9 Dec 2010 19:24:29 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 42465 invoked by uid 500); 9 Dec 2010 19:24:29 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 42429 invoked by uid 99); 9 Dec 2010 19:24:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 19:24:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jdcryans@gmail.com designates 209.85.161.50 as permitted sender) Received: from [209.85.161.50] (HELO mail-fx0-f50.google.com) (209.85.161.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 19:24:23 +0000 Received: by fxm14 with SMTP id 14so2572812fxm.23 for ; Thu, 09 Dec 2010 11:24:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=UIZHO5cEVoKODxwxNEktL8rVH8zJ4WlR79FE45aaE3Y=; b=NP4eiFGqjy/UOQImAThCIYLThw56/vQaupjd14bccN3IohpgmA7fepVfd7smuslWQi l2PgizI7XJOlforlqN51TSZF+IFecdaVYN+h6rkfKmYlBZyEl2VbA3n2ngY3JOdXVm7m uPgUWg03FUJjCMHnWQk11X1MYNQd5n2cgw0io= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=qb3hoFv0oT3upOpOaNILWDq9Hkkt+PMntsG75hPyX6P4Ve/rl+bBUXPSf/v8bactqa XQ+w3fot5ep5omrtZIdObXewHWd+ektcko2on15qeOJgEIoZFqNcPdKPMvvhTusOl4A6 xCztHSHp1qq71YtqQwNh1oR3eH4AHsdXRqxU4= MIME-Version: 1.0 Received: by 10.223.86.196 with SMTP id t4mr10021661fal.34.1291922642494; Thu, 09 Dec 2010 11:24:02 -0800 (PST) Sender: jdcryans@gmail.com Received: by 10.223.86.133 with HTTP; Thu, 9 Dec 2010 11:24:02 -0800 (PST) In-Reply-To: <321C2E54215EEB41A581FDD9DAECBC5DFCC73C2A@IRV1EXMB01.eLiberation.com> References: <321C2E54215EEB41A581FDD9DAECBC5DFCC73C2A@IRV1EXMB01.eLiberation.com> Date: Thu, 9 Dec 2010 11:24:02 -0800 X-Google-Sender-Auth: VmQhenmraNmRrBsz2lD0sTqFKUI Message-ID: Subject: Re: Connection to HBase seems to hang From: Jean-Daniel Cryans To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Very often it's a version problem, make sure both the client and the server have the same HBase and Hadoop version on their classpath. J-D On Thu, Dec 9, 2010 at 11:22 AM, Peter Haidinyak wro= te: > Hi, > I'm using HBase .89 and Hadoop .20.2 > > =A0I'm trying to create a connection to HBase from a remote Java Client. = I am using the following code... > > =A0 =A0final Configuration configuration =3D HBaseConfiguration.create(); > =A0 =A0configuration.set("hbase.zookeeper.quorum", "caiss01a"); > =A0 =A0configuration.set("hbase.zookeeper.property.clientPort", "2222"); > =A0 =A0m_trafficTable =3D new HTable(configuration, TRAFFIC_LOG_TABLE_NAM= E); > =A0 =A0m_logger.info("Connection successful."); > > I never get to the line 'm_logger.info("Connection successful.");' > > The log4j logging show the following... > > 10/12/09 11:17:30 INFO zookeeper.ZooKeeper: Initiating client connection,= connectString=3Dcaiss01a:2222 sessionTimeout=3D60000 watcher=3Dorg.apache.= hadoop.hbase.zookeeper.ZooKeeperWrapper@19616c7 > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatchRe= set is false > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Attempting connection to ser= ver caiss01a/172.16.2.224:2222 > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Priming connection to java.n= io.channels.SocketChannel[connected local=3D/10.2.136.59:3592 remote=3Dcais= s01a/172.16.2.224:2222] > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Server connection successful > > I've search the list and Google, does anyone hear have a suggestion? > > Thanks > > -Pete >