hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajivtyagi711 <rajivtyagi...@gmail.com>
Subject Re: Connecting to standalone HBase from a remote client
Date Wed, 06 Feb 2013 09:44:03 GMT
Hello,

I am new to HBase and have a background in C. Please help as I am facing
this problem from last one day.

I have installed HBase on Linux Machine(192.168.113.27). I have created the
"users" table on HBase.

Then I have wriiten the code in Eclipse IDE on my Local Machine to
communicate with HBase to store some data in HBase.

Code witten is
Configuration conf = HBaseConfiguration.create();
conf.set("hbase.zookeeper.quorum", "192.168.113.27");
conf.set("hbase.zookeeper.property.clientPort","2181"); 

   HTableInterface usersTable = new HTable(conf, "users");  

As per my recent knowledge which I have gained till now for last 4 days is
the sample Application communicates with Zookeeper.

The connection will be perfectly fine with zookeeper but after that I have
getting "org.apache.hadoop.hbase.client.NoServerForRegionException: Unable
to find region for users,,99999999999999 after 10 tries. after that. 

I have also removed the localhost from the regionservers file and put
192.168.113.27 in that file.

Logs are shown below:
.

13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:host.name=DWUS1B045.hsc.com
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:java.version=1.6.0_39
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:java.vendor=Sun Microsystems Inc.
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:java.home=C:\Program Files\Java\jre6
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:java.class.path=C:\Documents and
Settings\ggne0509\workspace1\Hbase\bin;C:\HBase\hbase-0.94.4\lib\asm-3.1.jar;C:\HBase\hbase-0.94.4\lib\avro-1.5.3.jar;C:\HBase\hbase-0.94.4\lib\avro-ipc-1.5.3.jar;C:\HBase\hbase-0.94.4\lib\commons-beanutils-1.7.0.jar;C:\HBase\hbase-0.94.4\lib\commons-beanutils-core-1.8.0.jar;C:\HBase\hbase-0.94.4\lib\commons-cli-1.2.jar;C:\HBase\hbase-0.94.4\lib\commons-codec-1.4.jar;C:\HBase\hbase-0.94.4\lib\commons-collections-3.2.1.jar;C:\HBase\hbase-0.94.4\lib\commons-configuration-1.6.jar;C:\HBase\hbase-0.94.4\lib\commons-digester-1.8.jar;C:\HBase\hbase-0.94.4\lib\commons-el-1.0.jar;C:\HBase\hbase-0.94.4\lib\commons-httpclient-3.1.jar;C:\HBase\hbase-0.94.4\lib\commons-io-2.1.jar;C:\HBase\hbase-0.94.4\lib\commons-lang-2.5.jar;C:\HBase\hbase-0.94.4\lib\commons-logging-1.1.1.jar;C:\HBase\hbase-0.94.4\lib\commons-math-2.1.jar;C:\HBase\hbase-0.94.4\lib\commons-net-1.4.1.jar;C:\HBase\hbase-0.94.4\lib\core-3.1.1.jar;C:\HBase\hbase-0.94.4\lib\guava-11.0.2.jar;C:\HBase\hbase-0.94.4\lib\hadoop-core-1.0.4.jar;C:\HBase\hbase-0.94.4\lib\high-scale-lib-1.1.1.jar;C:\HBase\hbase-0.94.4\lib\httpclient-4.1.2.jar;C:\HBase\hbase-0.94.4\lib\httpcore-4.1.3.jar;C:\HBase\hbase-0.94.4\lib\jackson-core-asl-1.8.8.jar;C:\HBase\hbase-0.94.4\lib\jackson-jaxrs-1.8.8.jar;C:\HBase\hbase-0.94.4\lib\jackson-mapper-asl-1.8.8.jar;C:\HBase\hbase-0.94.4\lib\jackson-xc-1.8.8.jar;C:\HBase\hbase-0.94.4\lib\jamon-runtime-2.3.1.jar;C:\HBase\hbase-0.94.4\lib\jasper-compiler-5.5.23.jar;C:\HBase\hbase-0.94.4\lib\jasper-runtime-5.5.23.jar;C:\HBase\hbase-0.94.4\lib\jaxb-api-2.1.jar;C:\HBase\hbase-0.94.4\lib\jaxb-impl-2.2.3-1.jar;C:\HBase\hbase-0.94.4\lib\jersey-core-1.8.jar;C:\HBase\hbase-0.94.4\lib\jersey-json-1.8.jar;C:\HBase\hbase-0.94.4\lib\jersey-server-1.8.jar;C:\HBase\hbase-0.94.4\lib\jettison-1.1.jar;C:\HBase\hbase-0.94.4\lib\jetty-6.1.26.jar;C:\HBase\hbase-0.94.4\lib\jetty-util-6.1.26.jar;C:\HBase\hbase-0.94.4\lib\jruby-complete-1.6.5.jar;C:\HBase\hbase-0.94.4\lib\jsp-2.1-6.1.14.jar;C:\HBase\hbase-0.94.4\lib\jsp-api-2.1-6.1.14.jar;C:\HBase\hbase-0.94.4\lib\jsr305-1.3.9.jar;C:\HBase\hbase-0.94.4\lib\junit-4.10-HBASE-1.jar;C:\HBase\hbase-0.94.4\lib\libthrift-0.8.0.jar;C:\HBase\hbase-0.94.4\lib\log4j-1.2.16.jar;C:\HBase\hbase-0.94.4\lib\metrics-core-2.1.2.jar;C:\HBase\hbase-0.94.4\lib\netty-3.2.4.Final.jar;C:\HBase\hbase-0.94.4\lib\protobuf-java-2.4.0a.jar;C:\HBase\hbase-0.94.4\lib\servlet-api-2.5-6.1.14.jar;C:\HBase\hbase-0.94.4\lib\slf4j-api-1.4.3.jar;C:\HBase\hbase-0.94.4\lib\slf4j-log4j12-1.4.3.jar;C:\HBase\hbase-0.94.4\lib\snappy-java-1.0.3.2.jar;C:\HBase\hbase-0.94.4\lib\stax-api-1.0.1.jar;C:\HBase\hbase-0.94.4\lib\velocity-1.7.jar;C:\HBase\hbase-0.94.4\lib\xmlenc-0.52.jar;C:\HBase\hbase-0.94.4\lib\zookeeper-3.4.5.jar;C:\Documents
and Settings\ggne0509\workspace1\Hbase\lib\hbase-0.94.4.jar
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:java.library.path=C:\Program
Files\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
Files\Java\jre6\bin\client;C:\Program
Files\Java\jre6\bin;C:\TimesTen\TT1121~1\bin;C:\TimesTen\TT1121~1\ttoracle_home\instantclient_11_1;C:\XEClient\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\TortoiseSVN\bin;C:\jacorb-2.3.1\bin;C:\Program
Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program
Files\Java\jdk1.6.0_01\bin;C:\Ant\apache-ant-1.7.1\bin;C:\apache-maven-2.2.1\bin;C:\jacorb-2.3.1\binbin;.
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:java.io.tmpdir=C:\DOCUME~1\ggne0509\LOCALS~1\Temp\
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:java.compiler=<NA>
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:os.name=Windows XP
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:os.version=5.1
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:user.name=ggne0509
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:user.home=C:\Documents and Settings\ggne0509
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Client
environment:user.dir=C:\Documents and Settings\ggne0509\workspace1\Hbase
13/02/06 14:37:39 INFO zookeeper.ZooKeeper: Initiating client connection,
connectString=192.168.113.27:2181 sessionTimeout=180000 watcher=hconnection
13/02/06 14:37:39 INFO zookeeper.RecoverableZooKeeper: The identifier of
this process is 3004@DWUS1B045
13/02/06 14:37:48 INFO zookeeper.ClientCnxn: Opening socket connection to
server 192.168.113.27/192.168.113.27:2181. Will not attempt to authenticate
using SASL (Unable to locate a login configuration)
13/02/06 14:37:48 INFO zookeeper.ClientCnxn: Socket connection established
to 192.168.113.27/192.168.113.27:2181, initiating session
13/02/06 14:37:48 INFO zookeeper.ClientCnxn: Session establishment complete
on server 192.168.113.27/192.168.113.27:2181, sessionid = 0x13caf141e3f0003,
negotiated timeout = 40000
org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find
region for users,,99999999999999 after 10 tries.
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:951)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:856)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:958)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:860)
	at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:817)
	at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:234)
	at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:174)
	at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:133)
	at com.samsung.HBase.DBMain.putData(DBMain.java:32)
	at com.samsung.HBase.DBMain.main(DBMain.java:17)

Please help me...




--
View this message in context: http://apache-hbase.679495.n3.nabble.com/Connecting-to-standalone-HBase-from-a-remote-client-tp4034362p4038027.html
Sent from the HBase User mailing list archive at Nabble.com.

Mime
View raw message