hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sudarshan Kadambi (BLOOMBERG/ 731 LEXIN)" <skada...@bloomberg.net>
Subject Re: HBase with multiple interfaces
Date Fri, 15 Nov 2013 16:01:58 GMT

What doesn't work is that the RegionServers bind to the IP that the hostname maps to in /etc/hosts
and not to the specified interface.

I've this in hbase-site.xml:

This however has no effect. I'm on HBase 0.94.6. 

I see:
  // Server to handle client requests.
    String hostname = conf.get("hbase.regionserver.ipc.address",
        conf.get("hbase.regionserver.dns.interface", "default"),
        conf.get("hbase.regionserver.dns.nameserver", "default"))));
    int port = conf.getInt(HConstants.REGIONSERVER_PORT,
    // Creation of a HSA will force a resolve.
    InetSocketAddress initialIsa = new InetSocketAddress(hostname, port);
    if (initialIsa.getAddress() == null) {
      throw new IllegalArgumentException("Failed resolve of " + initialIsa);

So this setting is in the code (that JIRA should be resolved; it's confusing). Reverse DNS
lookups don't work yet on my cluster. Could this be the reason? I traced this down to a call
to getHosts() which does a reverseDns lookup. And since that doesn't work it falls back to
the default?

----- Original Message -----
From: asaf.mesika@gmail.com
To: Sudarshan Kadambi (BLOOMBERG/ 731 LEXIN), user@hbase.apache.org
At: Nov 15 2013 00:07:50

We are using both of the following properties: hbase.regionserver.dns.interface, base.master.dns.interface.
Both set to the interface name we want. We have two interfaces as you described - one for
inner communication and one for external.

What exactly is not working for you?

On Wed, Nov 13, 2013 at 8:02 PM, Sudarshan Kadambi (BLOOMBERG/ 731 LEXIN) <skadambi@bloomberg.net>

Hi Guys:

I've HBase running on a machine with multiple interfaces (for in-bound and inter-cluster traffic).
I can't get HBase to listen on the interface I want it to by setting hbase.regionserver.dns.interface.
Does this setting work? What is its purpose?
After reading an old thread on the user list, I wasn't sure:

That thread led me to this unresolved JIRA: https://issues.apache.org/jira/browse/HBASE-2502


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message