Hard to tell without a jstack (http://download.oracle.com/javase/1.5.0/docs/tooldocs/share/jstack.html)
J-D On Thu, Oct 28, 2010 at 2:11 PM, Shuja Rehman <[email protected]> wrote: > Hi > I have written a small program to connect to hbase but it stuck half way and > just go in the wait state. > > *Here is the code > > * System.out.println("Start"); > HBaseConfiguration config = new HBaseConfiguration(); > config.clear(); > config.set("hbase.zookeeper.quorum", "10.10.10.2:2181"); > config.set("hbase.zookeeper.property.clientPort","2181"); > System.out.println("Before Htable"); > HTable table = new HTable(config, "rnc"); > System.out.println("After Htable"); > > System.out.println("Before Get"); > Get g = new Get(Bytes.toBytes("20100926000000P123TREDFR$#")); > Result r = table.get(g); > byte [] value = r.getValue(Bytes.toBytes("Info"), > Bytes.toBytes("COL_STAGE")); > // If we convert the value bytes, we should get back 'Some Value', the > // value we inserted at this location. > String valueStr = Bytes.toString(value); > System.out.println("GET: " + valueStr); > > *And here is the system Output* > > > *Start* > 10/10/29 02:05:46 WARN hbase.HBaseConfiguration: instantiating > HBaseConfiguration() is deprecated. Please use HBaseConfiguration#create() > to construct a plain Configuration > *Before Htable* > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:zookeeper.version=3.3.1-942149, built on 05/07/2010 17:14 GMT > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client environment:host.name=DV > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:java.version=1.6.0_21 > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:java.vendor=Sun Microsystems Inc. > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:java.home=C:\Program Files\Java\jdk1.6.0_21\jre > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:java.class.path=D:\FreeLauncing\DataWareHouse\HBaseMRNewAPI\lib\hbase-0.89.20100621+17.jar;D:\FreeLauncing\DataWareHouse\HBaseMRNewAPI\lib\hadoop-core-0.20.2+320.jar;D:\FreeLauncing\DataWareHouse\HBaseClient\lib\commons-logging-1.1.1.jar;D:\FreeLauncing\DataWareHouse\HBaseClient\lib\zookeeper-3.3.1+7.jar;D:\FreeLauncing\DataWareHouse\HBaseClient\lib\log4j-1.2.15.jar;D:\FreeLauncing\DataWareHouse\HBaseClient\build\classes;D:\FreeLauncing\DataWareHouse\HBaseClient\src > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:java.library.path=C:\Program > Files\Java\jdk1.6.0_21\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program > Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\PC > Connectivity > Solution\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program > Files\Microsoft SQL Server\90\Tools\binn\;C:\Program > Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL > Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL > Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL > Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual > Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Windows > Live\Shared > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:java.io.tmpdir=C:\Users\shuja\AppData\Local\Temp\ > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:java.compiler=<NA> > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client environment:os.name=Windows > 7 > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86 > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:os.version=6.1 > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client environment:user.name > =shuja > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:user.home=C:\Users\shuja > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Client > environment:user.dir=D:\FreeLauncing\DataWareHouse\HBaseClient > 10/10/29 02:05:47 INFO zookeeper.ZooKeeper: Initiating client connection, > connectString=10.10.10.2:2181 sessionTimeout=60000 > watcher=org.apache.hadoop.hbase.client.hconnectionmanager$clientzkwatc...@183f74d > 10/10/29 02:05:47 INFO zookeeper.ClientCnxn: Opening socket connection to > server /10.10.10.2:2181 > 10/10/29 02:05:47 INFO zookeeper.ClientCnxn: Socket connection established > to app4.hsd1.wa.comcast.net/10.10.10.2:2181, initiating session > 10/10/29 02:05:48 INFO zookeeper.ClientCnxn: Session establishment complete > on server app4.hsd1.wa.comcast.net/10.10.10.2:2181, sessionid = > 0x12bf232ec580014, negotiated timeout = 40000 > > > Can anybody tells why it is not proceeding??? > -- > Regards > Shuja-ur-Rehman Baig > http://pk.linkedin.com/in/shujamughal > Cell: +92 3214207445 >
