[
https://issues.apache.org/jira/browse/HDFS-5316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789209#comment-13789209
]
Hudson commented on HDFS-5316:
------------------------------
FAILURE: Integrated in Hadoop-Mapreduce-trunk #1572 (See
[https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1572/])
HDFS-5316. Namenode ignores the default https port. Contributed by Haohui Mai
(brandonli:
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1530150)
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
*
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeHttpServer.java
*
/hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestNameNodeHttpServer.java
> Namenode ignores the default https port
> ---------------------------------------
>
> Key: HDFS-5316
> URL: https://issues.apache.org/jira/browse/HDFS-5316
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Affects Versions: 2.0.0-alpha
> Reporter: Suresh Srinivas
> Assignee: Haohui Mai
> Priority: Critical
> Fix For: 2.2.1
>
> Attachments: HDFS-5316.000.patch
>
>
> When dfs.https.enable is true and dfs.https.port is not configured, namenode
> does not pickup the default https port (50470), instead picks up random port.
> See:
> {code}
> boolean needClientAuth = conf.getBoolean("dfs.https.need.client.auth", false);
> InetSocketAddress secInfoSocAddr = NetUtils.createSocketAddr(infoHost +
> ":" + conf.get(
> DFSConfigKeys.DFS_NAMENODE_HTTPS_PORT_KEY, "0"));
> Configuration sslConf = new Configuration(false);
> if (certSSL) {
>
> sslConf.addResource(conf.get(DFSConfigKeys.DFS_SERVER_HTTPS_KEYSTORE_RESOURCE_KEY,
> "ssl-server.xml"));
> }
> {code}
> Unless https port is specifically configured as 0, we should not be picking
> random port. This needs to be documented in hdfs-default.xml
--
This message was sent by Atlassian JIRA
(v6.1#6144)