Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 258CF10243 for ; Mon, 7 Oct 2013 21:42:57 +0000 (UTC) Received: (qmail 28060 invoked by uid 500); 7 Oct 2013 21:42:47 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 27849 invoked by uid 500); 7 Oct 2013 21:42:45 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 27636 invoked by uid 99); 7 Oct 2013 21:42:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Oct 2013 21:42:42 +0000 Date: Mon, 7 Oct 2013 21:42:42 +0000 (UTC) From: "Haohui Mai (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-5316) Namenode ignores the default https port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-5316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Haohui Mai updated HDFS-5316: ----------------------------- Status: Patch Available (was: Open) > 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 > 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)