From user-return-14420-apmail-hbase-user-archive=hbase.apache.org@hbase.apache.org Fri Dec 10 00:03:34 2010 Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 82081 invoked from network); 10 Dec 2010 00:03:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Dec 2010 00:03:34 -0000 Received: (qmail 61226 invoked by uid 500); 10 Dec 2010 00:03:31 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 61198 invoked by uid 500); 10 Dec 2010 00:03:31 -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 61190 invoked by uid 99); 10 Dec 2010 00:03:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 00:03:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of phaidinyak@local.com designates 70.183.28.5 as permitted sender) Received: from [70.183.28.5] (HELO mail11.local.com) (70.183.28.5) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Dec 2010 00:03:24 +0000 Received: from IRV1HUBCAS01.eLiberation.com (10.1.190.40) by mail11.local.com (10.1.230.41) with Microsoft SMTP Server (TLS) id 8.3.83.0; Thu, 9 Dec 2010 16:03:19 -0800 Received: from IRV1EXMB01.eLiberation.com ([fe80::895:3aed:8948:77ab]) by IRV1HUBCAS01.eLiberation.com ([fe80::7853:3c40:9449:94df%13]) with mapi; Thu, 9 Dec 2010 16:03:02 -0800 From: Peter Haidinyak To: "user@hbase.apache.org" Date: Thu, 9 Dec 2010 16:03:01 -0800 Subject: RE: Connection to HBase seems to hang Thread-Topic: Connection to HBase seems to hang Thread-Index: AcuX+3P49SUtRR5WRgiYmcdC33fXQQAAgHow Message-ID: <321C2E54215EEB41A581FDD9DAECBC5DFCC73CB5@IRV1EXMB01.eLiberation.com> References: <321C2E54215EEB41A581FDD9DAECBC5DFCC73C2A@IRV1EXMB01.eLiberation.com> <321C2E54215EEB41A581FDD9DAECBC5DFCC73C73@IRV1EXMB01.eLiberation.com> <321C2E54215EEB41A581FDD9DAECBC5DFCC73C8E@IRV1EXMB01.eLiberation.com> <321C2E54215EEB41A581FDD9DAECBC5DFCC73CA7@IRV1EXMB01.eLiberation.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org My client is running on Windows XP and the HBase/Hadoop servers are on Linu= x. I can connect to HBase on the server using its shell. -Pete -----Original Message----- From: saint.ack@gmail.com [mailto:saint.ack@gmail.com] On Behalf Of Stack Sent: Thursday, December 09, 2010 3:47 PM To: user@hbase.apache.org Subject: Re: Connection to HBase seems to hang This is a windows system? Is HBase for sure up and running and you've verified it so by connecting with the shell? St.Ack On Thu, Dec 9, 2010 at 3:41 PM, Peter Haidinyak wrot= e: > I checked the 'hadoop version' on each machine and it was .20.2+737 > > -Pete > > -----Original Message----- > From: jdcryans@gmail.com [mailto:jdcryans@gmail.com] On Behalf Of Jean-Da= niel Cryans > Sent: Thursday, December 09, 2010 3:36 PM > To: user@hbase.apache.org > Subject: Re: Connection to HBase seems to hang > > As far as I know hadoop 0.20.2 and 0.21.0 aren't wire compatible, so > there's really an issue here. Also HBase doesn't run on top of 0.21.0 > > J-D > > On Thu, Dec 9, 2010 at 2:52 PM, Peter Haidinyak wr= ote: >> Turns out that even though I am using hadoop 0.20.2 on the server I need= ed to use version .21.0 on my client. >> >> -Pete >> >> -----Original Message----- >> From: Peter Haidinyak [mailto:phaidinyak@local.com] >> Sent: Thursday, December 09, 2010 1:55 PM >> To: user@hbase.apache.org >> Subject: RE: Connection to HBase seems to hang >> >> I found the version of zookeeper on my client was wrong so I changed it.= I still have the same problem but the log changed a little. >> >> 10/12/09 13:51:03 INFO query.QueryTrafficLogs: Starting to import Traffi= c Logs... >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeperWrapper: Reconnecting to zooke= eper >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:zookeeper= .version=3D3.3.1-942149, built on 05/07/2010 17:14 GMT >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:host.name= =3Dpc-phaidneyak.eLiberation.com >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:java.vers= ion=3D1.6.0_22 >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:java.vend= or=3DSun Microsystems Inc. >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:java.home= =3DC:\Program Files\Java\jdk1.6.0_22\jre >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:java.clas= s.path=3DC:\Program Files\Java\jdk1.6.0_22\jre\lib\alt-rt.jar;C:\Program Fi= les\Java\jdk1.6.0_22\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0_22= \jre\lib\deploy.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\javaws.jar;C:= \Program Files\Java\jdk1.6.0_22\jre\lib\jce.jar;C:\Program Files\Java\jdk1.= 6.0_22\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\managemen= t-agent.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\plugin.jar;C:\Program= Files\Java\jdk1.6.0_22\jre\lib\resources.jar;C:\Program Files\Java\jdk1.6.= 0_22\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0_22\jre\lib\ext\dnsns.jar= ;C:\Program Files\Java\jdk1.6.0_22\jre\lib\ext\localedata.jar;C:\Program Fi= les\Java\jdk1.6.0_22\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\= jdk1.6.0_22\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.6.0_22\jre= \lib\ext\sunpkcs11.jar;C:\Projects\ClickThroughRate\QueryTrafficLogs\target= \classes;C:\Documents and Settings\phaidneyak\.m2\repository\log4j\log4j\1.= 2.15\log4j-1.2.15.jar;C:\Documents and Settings\phaidneyak\.m2\repository\o= rg\apache\hadoop\0.20.2-core\hadoop-0.20.2-core.jar;C:\Documents and Settin= gs\phaidneyak\.m2\repository\org\apache\mahout\hbase\hbase\0.89\hbase-0.89.= jar;C:\Documents and Settings\phaidneyak\.m2\repository\commons-logging\com= mons-logging\1.1.1\commons-logging-1.1.1.jar;C:\Documents and Settings\phai= dneyak\.m2\repository\commons-cli\commons-cli\2.0-SNAPSHOT\commons-cli-2.0-= SNAPSHOT.jar;C:\Documents and Settings\phaidneyak\.m2\repository\org\apache= \hadoop\zookeeper\3.3.1\zookeeper-3.3.1.jar;C:\Documents and Settings\phaid= neyak\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Documents and S= ettings\phaidneyak\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Prog= ram Files\JetBrains\IntelliJ IDEA 10\lib\idea_rt.jar >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:java.libr= ary.path=3DC:\Program Files\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;= C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sy= stem32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Com= mon Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Share= d\10.0\DLLShared\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\P= rogram Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft= SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Bin= n\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\I= DE\PrivateAssemblies\;C:\Archive\ant\bin;C:\Program Files\Java\jdk1.6.0_22\= bin;C:\maven\bin;C:\Program Files\TortoiseSVN\bin;C:\cygwin\bin;C:\Program = Files\SSH Communications Security\SSH Secure Shell;c:\program files\jetbrai= ns\intellij idea 10\jre\jre\bin >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:java.io.t= mpdir=3DC:\DOCUME~1\PHAIDN~1\LOCALS~1\Temp\ >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:java.comp= iler=3D >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:os.name= =3DWindows XP >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:os.arch= =3Dx86 >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:os.versio= n=3D5.1 >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:user.name= =3Dphaidinyak >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:user.home= =3DC:\Documents and Settings\phaidneyak >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment:user.dir= =3DC:\Projects\ClickThroughRate\QueryTrafficLogs >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Initiating client connection= , connectString=3Dcaiss01a:2222 sessionTimeout=3D60000 watcher=3Dorg.apache= .hadoop.hbase.zookeeper.ZooKeeperWrapper@b166b5 >> 10/12/09 13:51:04 INFO zookeeper.ClientCnxn: Opening socket connection t= o server caiss01a/172.16.2.224:2222 >> 10/12/09 13:51:04 INFO zookeeper.ClientCnxn: Socket connection establish= ed to caiss01a/172.16.2.224:2222, initiating session >> 10/12/09 13:51:04 INFO zookeeper.ClientCnxn: Session establishment compl= ete on server caiss01a/172.16.2.224:2222, sessionid =3D 0x2cc1d51074003c, n= egotiated timeout =3D 60000 >> >> >> >> Thanks again. >> >> -Pete >> >> >> >> -----Original Message----- >> From: jdcryans@gmail.com [mailto:jdcryans@gmail.com] On Behalf Of Jean-D= aniel Cryans >> Sent: Thursday, December 09, 2010 11:24 AM >> To: user@hbase.apache.org >> Subject: Re: Connection to HBase seems to hang >> >> 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 = wrote: >>> 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_N= AME); >>> =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 connectio= n, connectString=3Dcaiss01a:2222 sessionTimeout=3D60000 watcher=3Dorg.apach= e.hadoop.hbase.zookeeper.ZooKeeperWrapper@19616c7 >>> 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatch= Reset is false >>> 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Attempting connection to s= erver caiss01a/172.16.2.224:2222 >>> 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Priming connection to java= .nio.channels.SocketChannel[connected local=3D/10.2.136.59:3592 remote=3Dca= iss01a/172.16.2.224:2222] >>> 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Server connection successf= ul >>> >>> I've search the list and Google, does anyone hear have a suggestion? >>> >>> Thanks >>> >>> -Pete >>> >> >