hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharat Viswanadham (Jira)" <j...@apache.org>
Subject [jira] [Created] (HDDS-2236) Remove default http-bind-host from ozone-default.xml
Date Wed, 02 Oct 2019 20:13:00 GMT
Bharat Viswanadham created HDDS-2236:
----------------------------------------

             Summary: Remove default http-bind-host from ozone-default.xml
                 Key: HDDS-2236
                 URL: https://issues.apache.org/jira/browse/HDDS-2236
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Bharat Viswanadham


Right now, in the code to get HttpBindAddress

 

final Optional<String> bindHost =
 getHostNameFromConfigKeys(conf, bindHostKey);

final Optional<Integer> addressPort =
 getPortNumberFromConfigKeys(conf, addressKey);

final Optional<String> addressHost =
 getHostNameFromConfigKeys(conf, addressKey);

String hostName = bindHost.orElse(addressHost.orElse(bindHostDefault));

return NetUtils.createSocketAddr(
 hostName + ":" + addressPort.orElse(bindPortdefault));

 

So, if http-address is mentioned with some hostname, still bind-host (0.0.0.0) will be used.

 

Like this, we need to delete the default 0.0.0.0 for recon,freon,datanode.

<property>
 <name>ozone.om.http-bind-host</name>
 <value>0.0.0.0</value>
 <tag>OM, MANAGEMENT</tag>
 <description>
 The actual address the OM web server will bind to. If this optional
 the address is set, it overrides only the hostname portion of
 ozone.om.http-address.
 </description>



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org


Mime
View raw message