Hi,

I'm trying to run the java client using the remote client API vs a remote 
machine on which HBase is configured to work in a semi-distributed mode.
When I run the sell on the remote machine everything works just fine (I can 
create tables set and get data)
It seems like the client succeeds in connecting with the zookeeper server, but 
fails on connecting to the region server.
I tried to debug the client and I found two weird things:

1.        It seems that the outOfSafeMode is always false.

2.       When I eliminate the safe mode check a request is sent to the 
zookeeper to get the address of the region server "/hbase/root-region-server". 
The response address is 127.0.0.1:60020 which is completely wrong since the 
region server runs on the remote machine.
Is this a configuration issue?

Following is the exception I get:

10/09/16 14:33:48 INFO zookeeper.ClientCnxn: Server connection successful
org.apache.hadoop.hbase.client.NoServerForRegionException: Timed out trying to 
locate root region
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:983)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:625)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:670)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:630)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:670)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:634)
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:601)
        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:134)
        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:112)
        at hbaseclient.HBaseBMClient.<init>(HBaseBMClient.java:23)
        at 
common.BMManager.createStorageAccordingToClientType(BMManager.java:170)
        at common.BMManager.main(BMManager.java:66)


Appreciate your assistance and advice,
Thanks,
Orit

Reply via email to