hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Abdelnur (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-4163) consistently set the bind address
Date Tue, 15 May 2012 23:39:07 GMT

    [ 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

        

Mime
View raw message