Use DNS with HBase
You must configure DNS to resolve RegionServer and Master hostnames in your cluster. HBase uses the local hostname to report its IP address. Both forward and reverse DNS resolving works.
You must configure a few parameters in the hbase-site.xml
to use DNS
with HBase.
If your server has multiple interfaces, HBase uses the interface that the primary hostname resolves to, and you must ensure that the cluster configuration is consistent and every host has the same network interface configuration. If this is your use case:
-
Set
hbase.regionserver.dns.interface
in thehbase-site.xml
file to indicate the primary interface.
If you want to use a different DNS name server than the system-wide default.
-
Set
hbase.regionserver.dns.nameserver
in thehbase-site.xml
file to a different DNS name server.