[ 
https://issues.apache.org/jira/browse/HBASE-13481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Enis Soztutar updated HBASE-13481:
----------------------------------
    Attachment: hbase-13481_v1.patch

Here is a patch, which makes master honor all of:

{code}
hbase.master.ipc.address
hbase.master.dns.interface
hbase.master.dns.nameserver
hbase.master.info.bindAddress
{code}

I have tested this (although not DNS params) with this config: 
{code}
 <configuration>
+  <property >
+    <name>hbase.cluster.distributed</name>
+    <value>true</value>
+    <description>The mode the cluster will be in. Possible values are
+      false for standalone mode and true for distributed mode.  If
+      false, startup will run all HBase and ZooKeeper daemons together
+      in the one JVM.</description>
+  </property>
+  <property>
+    <name>hbase.master.port</name>
+    <value>17000</value>
+  </property>
+  <property>
+    <name>hbase.master.ipc.address</name>
+    <value>10.11.3.186</value>
+  </property>
+  <property>
+    <name>hbase.master.info.port</name>
+    <value>17010</value>
+  </property>
+  <property>
+    <name>hbase.master.info.bindAddress</name>
+    <value>10.11.3.186</value>
+  </property>
+  <property>
+    <name>hbase.regionserver.port</name>
+    <value>17020</value>
+  </property>
+  <property>
+    <name>hbase.regionserver.ipc.address</name>
+    <value>10.11.3.186</value>
+  </property>
+  <property>
+    <name>hbase.regionserver.info.port</name>
+    <value>17030</value>
+  </property>
+  <property>
+    <name>hbase.regionserver.info.bindAddress</name>
+    <value>10.11.3.186</value>
+  </property>
{code}

Seems binding takes affect:
{code}
HW10676:hbase$ netstat -a  | grep 170
tcp4       0      0  10.11.3.186.17030      *.*                    LISTEN     
tcp4       0      0  10.11.3.186.17020      *.*                    LISTEN     
tcp4       0      0  10.11.3.186.17010      *.*                    LISTEN     
tcp4       0      0  10.11.3.186.17000      *.*                    LISTEN 
{code}

This patch is targeted for 1.0+. 

> Master should respect master (old) DNS/bind related configurations
> ------------------------------------------------------------------
>
>                 Key: HBASE-13481
>                 URL: https://issues.apache.org/jira/browse/HBASE-13481
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 2.0.0, 1.0.1, 1.1.0
>
>         Attachments: hbase-13481_v1.patch
>
>
> This is a continuation of parent HBASE-13453. We should continue respecting 
> the following parameters that 1.0.0 does not: 
> {code}
> hbase.master.dns.interface
> hbase.master.dns.nameserver
> hbase.master.ipc.address
> {code}
> Credit goes to [~jerryhe] for pointing that out. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to