You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2010/09/17 21:05:33 UTC

[jira] Updated: (HDFS-1406) TestCLI fails on Ubuntu with default /etc/hosts

     [ https://issues.apache.org/jira/browse/HDFS-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Todd Lipcon updated HDFS-1406:
------------------------------

    Attachment: Test.java

Wrote this little script while looking at this issue, it may be useful for others.

On the default ubuntu config, I get:

todd@ubuntu64-build01:/tmp$ java -cp . Test
socAddr: localhost/127.0.0.1:0
hostname: localhost
Bound to: /127.0.0.1:55081
Hostname: ubuntu64-build01

If I switch the order in /etc/hosts it goes to:

todd@ubuntu64-build01:/tmp$ java -cp . Test
socAddr: localhost/127.0.0.1:0
hostname: localhost
Bound to: /127.0.0.1:46112
Hostname: localhost

and TestCLI can pass

> TestCLI fails on Ubuntu with default /etc/hosts
> -----------------------------------------------
>
>                 Key: HDFS-1406
>                 URL: https://issues.apache.org/jira/browse/HDFS-1406
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.20.2, 0.21.0, 0.22.0
>            Reporter: Todd Lipcon
>            Priority: Minor
>         Attachments: Test.java
>
>
> Depending on the order of entries in /etc/hosts, TestCLI can fail. This is because it sets fs.default.name to "localhost", and then the bound IPC socket on the NN side reports its hostname as "foobar-host" if the entry for 127.0.0.1 lists "foobar-host" before "localhost". This seems to be the default in some versions of Ubuntu.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.