You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ben Cuthbert <be...@ymail.com> on 2012/01/23 19:07:20 UTC

hbase dns lookups

All

Is there a way to have hardcoded /etc/hosts entries for the region and master address in hbase. 

When we try

10.10.10.1 	master01
10.10.10.2	slave01

in the /etc/hosts

Hbase starts but the region server attemps to connect back to the master on its dns name not master01 as per the host file.



Re: hbase dns lookups

Posted by Jean-Daniel Cryans <jd...@apache.org>.
HBase uses the Java libraries for DNS lookups which should normally
use the default lookup mechanisms on your machine, it looks like
/etc/hosts isn't looked at first in your OS configuration.

J-D

On Mon, Jan 23, 2012 at 10:07 AM, Ben Cuthbert <be...@ymail.com> wrote:
> All
>
> Is there a way to have hardcoded /etc/hosts entries for the region and master address in hbase.
>
> When we try
>
> 10.10.10.1      master01
> 10.10.10.2      slave01
>
> in the /etc/hosts
>
> Hbase starts but the region server attemps to connect back to the master on its dns name not master01 as per the host file.
>
>