-Re: HBase RegionServer can't connect to Master
yonghu 2012-05-04, 08:00
I think you can also use ifconfig command in the VM to see the ip
address. And then you can change your ip address in /etc/hosts.
On Wed, May 2, 2012 at 7:21 PM, Ben Lisbakken <[EMAIL PROTECTED]> wrote:
> Hello --
> I've got a problem where the RegionServers try to connect to localhost for
> the Master, because that's what's being reported to them by the ZooKeeper.
> Since they are not on the same machine, the requests fail:
> 2012-05-01 18:01:27,111 INFO
> org.apache.hadoop.hbase.regionserver.HRegionServer: Attempting connect to
> Master server at localhost,60000
> 2012-05-01 18:02:27,276 WARN
> org.apache.hadoop.hbase.regionserver.HRegionServer: Unable to connect to
> master. Retrying. Error was:
> java.net.ConnectException: Connection refused
> I've looked through the documentation, it seems there is no way to
> statically set the master's address. I've read through this archive a bit
> and found this thread:
> http://mail-archives.apache.org/mod_mbox/hbase-user/201112.mbox/%[EMAIL PROTECTED]%3E
> The suggestions are basically to modify /etc/hosts.
> In my situation, I don't think I can use this approach. I am doing an
> automated deployment on freshly deployed VMs and having a script modify
> /etc/hosts doesn't fit in well with this.
> There has to be a better way to force the master to report the correct
> Can anyone help?