Description
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:
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")); }
Unless https port is specifically configured as 0, we should not be picking random port. This needs to be documented in hdfs-default.xml