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 67E5E6B5C for ; Fri, 24 Jun 2011 22:16:11 +0000 (UTC) Received: (qmail 91955 invoked by uid 500); 24 Jun 2011 22:16:11 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 91918 invoked by uid 500); 24 Jun 2011 22:16:10 -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 91910 invoked by uid 99); 24 Jun 2011 22:16:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 22:16:10 +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; Fri, 24 Jun 2011 22:16:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6FE5E42E774 for ; Fri, 24 Jun 2011 22:15:47 +0000 (UTC) Date: Fri, 24 Jun 2011 22:15:47 +0000 (UTC) From: "Aaron T. Myers (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <959672264.38697.1308953747455.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1321) If service port and main port are the same, there is no clear log message explaining the issue. 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 [ https://issues.apache.org/jira/browse/HDFS-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13054711#comment-13054711 ] Aaron T. Myers commented on HDFS-1321: -------------------------------------- Hey Jim, latest patch is almost there. Two tiny nits: # I should've been more clear, but I think the error message should include the *values* of those config options. i.e. I think the error message should end up including "dfs.namenode.http-address" and "dfs.namenode.rpc-address" since those are what are actually put in the config files. Users won't know what {{DFS_NAMENODE_HTTP_ADDRESS_KEY}} and {{DFS_NAMENODE_RPC_ADDRESS_KEY}} mean. # In {{testThatDifferentRPCandHttpPortsAreOK}}, there's no need to catch the exception and explicitly call {{Assert.fail(...)}}. If an exception gets thrown by a test method, that will indicate failure to the testing framework automatically. +1 after these issues are addressed. > If service port and main port are the same, there is no clear log message explaining the issue. > ----------------------------------------------------------------------------------------------- > > Key: HDFS-1321 > URL: https://issues.apache.org/jira/browse/HDFS-1321 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.23.0 > Reporter: gary murry > Assignee: Jim Plush > Priority: Minor > Labels: newbie > Fix For: 0.23.0 > > Attachments: HDFS-1321-take2.txt, HDFS-1321-take3.txt, HDFS-1321.patch > > > With the introduction of a service port to the namenode, there is now a chance for user error to set the two port equal. This will cause the namenode to fail to start up. It would be nice if there was a log message explaining the port clash. Or just treat things as if the service port was not specified. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira