Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 9BFA5C6DB for ; Tue, 15 May 2012 23:39:30 +0000 (UTC) Received: (qmail 36039 invoked by uid 500); 15 May 2012 23:39:30 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 35980 invoked by uid 500); 15 May 2012 23:39:30 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 35970 invoked by uid 99); 15 May 2012 23:39:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 May 2012 23:39:30 +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; Tue, 15 May 2012 23:39:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0B2695AE4 for ; Tue, 15 May 2012 23:39:07 +0000 (UTC) Date: Tue, 15 May 2012 23:39:07 +0000 (UTC) From: "Alejandro Abdelnur (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1915619734.1919.1337125147047.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <709166569.33533.1334681238901.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-4163) consistently set the bind address 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/MAPREDUCE-4163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13276335#comment-13276335 ] Alejandro Abdelnur commented on MAPREDUCE-4163: ----------------------------------------------- What is the rational of the following change in the TestNodeStatusUpdater? {code} - try { - Assert.assertEquals(InetAddress.getLocalHost().getCanonicalHostName() - + ":12345", nodeId.toString()); - } catch (UnknownHostException e) { - Assert.fail(e.getMessage()); - } + // NOTE: this really should be checking against the config value + Assert.assertEquals("localhost:12345", nodeId.toString()); {code} This is failing in systems where localhost is not the first hostname in /etc/hosts for the loopback (i.e. CentOS5 where the first hostname is localhost.localdomain). Before was working just fine. > consistently set the bind address > --------------------------------- > > Key: MAPREDUCE-4163 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4163 > Project: Hadoop Map/Reduce > Issue Type: Sub-task > Components: mrv2 > Affects Versions: 0.23.0, 0.24.0, 2.0.0 > Reporter: Daryn Sharp > Assignee: Daryn Sharp > Fix For: 0.23.3, 2.0.0, 3.0.0 > > Attachments: MAPREDUCE-3659-1.patch, MAPREDUCE-3659-2.patch, MAPREDUCE-3659.patch > > > Use {{NetUtils.getConnectAddress}} for determining the bind address used for setting a token's service. -- 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