What J-D was pointing out was that you need the *exact* same hbase and hadoop jars on *both* client side and server side.
Your client java.class.path shows that you are using apache hadoop 0.20.2 whereas on the server side you are using CDH3 0.20.2+737 These are not compatible and with version mismatches a common symptom is the client appearing to hang. So - replace the client hbase & hadoop jars with the exact same jars you are using on the server side and try again. --Suraj > 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\org\apache\hadoop\0.20.2-core\hadoop-0.20.2-core.jar;C:\Documents and > Settings\phaidneyak\.m2\repository\org\apache\mahout\hbase\hbase\0.89\hbase-0.89.jar;C:\Documents and On Thu, Dec 9, 2010 at 4:03 PM, Peter Haidinyak <phaidin...@local.com>wrote: > My client is running on Windows XP and the HBase/Hadoop servers are on > Linux. > I can connect to HBase on the server using its shell. > > -Pete > > -----Original Message----- > From: saint....@gmail.com [mailto:saint....@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 <phaidin...@local.com> > wrote: > > I checked the 'hadoop version' on each machine and it was .20.2+737 > > > > -Pete > > > > -----Original Message----- > > From: jdcry...@gmail.com [mailto:jdcry...@gmail.com] On Behalf Of > Jean-Daniel 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 <phaidin...@local.com> > wrote: > >> Turns out that even though I am using hadoop 0.20.2 on the server I > needed to use version .21.0 on my client. > >> > >> -Pete > >> > >> -----Original Message----- > >> From: Peter Haidinyak [mailto:phaidin...@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 > Traffic Logs... > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeperWrapper: Reconnecting to > zookeeper > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:zookeeper.version=3.3.1-942149, built on 05/07/2010 17:14 GMT > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment: > host.name=pc-phaidneyak.eLiberation.com > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:java.version=1.6.0_22 > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:java.vendor=Sun Microsystems Inc. > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:java.home=C:\Program Files\Java\jdk1.6.0_22\jre > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:java.class.path=C:\Program > Files\Java\jdk1.6.0_22\jre\lib\alt-rt.jar;C:\Program > Files\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\management-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 > Files\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\org\apache\hadoop\0.20.2-core\hadoop-0.20.2-core.jar;C:\Documents > and > Settings\phaidneyak\.m2\repository\org\apache\mahout\hbase\hbase\0.89\hbase-0.89.jar;C:\Documents > and > Settings\phaidneyak\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;C:\Documents > and > Settings\phaidneyak\.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\phaidneyak\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Documents > and > Settings\phaidneyak\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Program > Files\JetBrains\IntelliJ IDEA 10\lib\idea_rt.jar > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:java.library.path=C:\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\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program > Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common > Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Microsoft SQL > Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL > Server\90\Tools\binn\;C:\Program Files\Microsoft SQL > Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL > Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual > Studio 8\Common7\IDE\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\jetbrains\intellij idea > 10\jre\jre\bin > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:java.io.tmpdir=C:\DOCUME~1\PHAIDN~1\LOCALS~1\Temp\ > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:java.compiler=<NA> > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > >> environment:os.name=Windows > XP > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:os.arch=x86 > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:os.version=5.1 > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client environment: > user.name=phaidinyak > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:user.home=C:\Documents and Settings\phaidneyak > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Client > environment:user.dir=C:\Projects\ClickThroughRate\QueryTrafficLogs > >> 10/12/09 13:51:04 INFO zookeeper.ZooKeeper: Initiating client > connection, connectString=caiss01a:2222 sessionTimeout=60000 > watcher=org.apache.hadoop.hbase.zookeeper.zookeeperwrap...@b166b5 > >> 10/12/09 13:51:04 INFO zookeeper.ClientCnxn: Opening socket connection > to server caiss01a/172.16.2.224:2222 > >> 10/12/09 13:51:04 INFO zookeeper.ClientCnxn: Socket connection > established to caiss01a/172.16.2.224:2222, initiating session > >> 10/12/09 13:51:04 INFO zookeeper.ClientCnxn: Session establishment > complete on server caiss01a/172.16.2.224:2222, sessionid = > 0x2cc1d51074003c, negotiated timeout = 60000 > >> > >> > >> > >> Thanks again. > >> > >> -Pete > >> > >> > >> > >> -----Original Message----- > >> From: jdcry...@gmail.com [mailto:jdcry...@gmail.com] On Behalf Of > Jean-Daniel 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 <phaidin...@local.com> > wrote: > >>> Hi, > >>> I'm using HBase .89 and Hadoop .20.2 > >>> > >>> I'm trying to create a connection to HBase from a remote Java Client. > I am using the following code... > >>> > >>> final Configuration configuration = HBaseConfiguration.create(); > >>> configuration.set("hbase.zookeeper.quorum", "caiss01a"); > >>> configuration.set("hbase.zookeeper.property.clientPort", "2222"); > >>> m_trafficTable = new HTable(configuration, TRAFFIC_LOG_TABLE_NAME); > >>> m_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=caiss01a:2222 sessionTimeout=60000 > watcher=org.apache.hadoop.hbase.zookeeper.zookeeperwrap...@19616c7 > >>> 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: > zookeeper.disableAutoWatchReset is false > >>> 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Attempting connection to > server caiss01a/172.16.2.224:2222 > >>> 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Priming connection to > java.nio.channels.SocketChannel[connected > local=/10.2.136.59:3592remote=caiss01a/ > 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 > >>> > >> > > >