hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: org.apache.hadoop.hbase.client.NoServerForRegionException: Timed out trying to locate root region
Date Mon, 20 Sep 2010 17:16:54 GMT
That is for HBase, which means that the root region from
HBase's point of view is on the local host (which makes sense because
in pseudo-distributed mode the region server runs in the same JVM as
the master).

HBase does a reverse lookup on the machine's hostname in order to get
its IP address, is your hostname on the HBase server pointing to If so, do change the OS configuration.


On Sun, Sep 19, 2010 at 7:09 AM, Orit Alul <Orit.Alul@mediamind.com> wrote:
> 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 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

View raw message