hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariah Rose <desert_rose_...@hotmail.com>
Subject First Java Client - Connecting to hbase
Date Sun, 25 Dec 2011 14:15:33 GMT

Dear all,
I'm new to hbase and I want to make a java client application to access hbase. I started by
reading the quick start and installed hbase standalone on localhost (without hdfs). The only
thing I configured was the JAVA_HOME in hbase-env.I launched the master and did a quick test.
Everything was OK.Then, I did a simple java class with a main method containing the following
(no xml configurations):«Configuration config = HBaseConfiguration.create();  config.set("hbase.zookeeper.quorum",
"virtual-notebook-tosh");  HTable table = new HTable(config, "myLittleHBaseTable");  Put p
= new Put(Bytes.toBytes("myLittleRow")); »
On running the app I get the following:«11/12/25 13:46:24 INFO zookeeper.ZooKeeper: Initiating
client connection, connectString=virtual-notebook-tosh:2181 sessionTimeout=180000 watcher=hconnection11/12/25
13:46:24 INFO zookeeper.ClientCnxn: Opening socket connection to server virtual-notebook-tosh/
13:46:24 INFO zookeeper.ClientCnxn: Socket connection established to virtual-notebook-tosh/,
initiating session11/12/25 13:46:24 INFO zookeeper.ClientCnxn: Session establishment complete
on server virtual-notebook-tosh/, sessionid = 0x1347571a4950006, negotiated
timeout = 4000011/12/25 13:46:26 INFO ipc.HbaseRPC: Server at virtual-notebook-tosh/
could not be reached after 1 tries, giving up.»
I don't know what this ipc.HbaseRPC is suppose to do, but I guess it is trying to reach the
region server.Accessing the master web UI I can see the Region Server address at: virtual-notebook-tosh:60030
Anyone can shed some light about what is happening?
Thank you. 		 	   		  
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message