Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6AAC90A2 for ; Sat, 4 Feb 2012 23:10:20 +0000 (UTC) Received: (qmail 56392 invoked by uid 500); 4 Feb 2012 23:10:20 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 56282 invoked by uid 500); 4 Feb 2012 23:10:19 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 56274 invoked by uid 99); 4 Feb 2012 23:10:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 23:10:19 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2012 23:10:16 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F0CCE1A39F8 for ; Sat, 4 Feb 2012 23:09:55 +0000 (UTC) Date: Sat, 4 Feb 2012 23:09:55 +0000 (UTC) From: "Eli Collins (Created) (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: <1077813219.12084.1328396995987.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HDFS-2893) The 2NN won't start if dfs.namenode.secondary.http-address is default or specified with a wildcard IP and port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org The 2NN won't start if dfs.namenode.secondary.http-address is default or specified with a wildcard IP and port -------------------------------------------------------------------------------------------------------------- Key: HDFS-2893 URL: https://issues.apache.org/jira/browse/HDFS-2893 Project: Hadoop HDFS Issue Type: Bug Affects Versions: 0.23.1 Reporter: Eli Collins Priority: Critical Looks like DFSUtil address matching doesn't find a match if the http-address is specified using a wildcard IP and a port. It should return 0.0.0.0:50090 in this case which would allow the 2NN to start. Also, unless http-address is explicitly configured in hdfs-site.xml the 2NN will not start, since DFSUtil#getSecondaryNameNodeAddresses does not use the default value as a fallback. That may be confusing to people who expect the default value to be used. {noformat} hadoop-0.23.1-SNAPSHOT $ cat /home/eli/hadoop/conf3/hdfs-site.xml ... dfs.namenode.secondary.http-address 0.0.0.0:50090 hadoop-0.23.1-SNAPSHOT $ ./bin/hdfs --config ~/hadoop/conf3 getconf -secondarynamenodes 0.0.0.0 hadoop-0.23.1-SNAPSHOT $ ./sbin/start-dfs.sh Starting namenodes on [localhost] localhost: starting namenode, logging to /home/eli/hadoop/dirs3/logs/eli/hadoop-eli-namenode-eli-thinkpad.out localhost: starting datanode, logging to /home/eli/hadoop/dirs3/logs/eli/hadoop-eli-datanode-eli-thinkpad.out Secondary namenodes are not configured. Cannot start secondary namenodes. {noformat} This works if eg localhost:50090 is used. We should also update the hdfs user guide to remove the reference to the masters file since it's no longer used to configure which hosts the 2NN runs on. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira