hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Macdonald (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2983) [HOD] local_fqdn() returns None when gethostbyname_ex doesnt return any FQDNs.
Date Wed, 12 Mar 2008 22:12:46 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578049#action_12578049
] 

Craig Macdonald commented on HADOOP-2983:
-----------------------------------------

 * No tests are included as there is no tests for HOD yet (see HADOOP-2775). Also, this patch
is for related to a system configuration issue, not with a particular HOD setting.
 * The core tests failed are related to DFS and not this patch.

The patch is committable.

> [HOD] local_fqdn() returns None when gethostbyname_ex doesnt return any FQDNs.
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-2983
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2983
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hod
>    Affects Versions: 0.16.0
>         Environment: Linux, PBS
>            Reporter: Craig Macdonald
>         Attachments: HOD_util_local_fqdn.py, HOD_util_local_fqdn_AL_GRANTED.patch
>
>
> For some reason (probably in our local DNS setup) gethostbyname_ex() does not return
any fully qualified hostnames. This has never been an issue, everything has worked fully with
the hostnames.
> However, this causes HOD to fail, as local_fqn() in util.py returns None. 
> {noformat}
> Python 2.5.1 (r251:54863, Sep 21 2007, 16:05:06)
> [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import socket, os
> >>> socket.gethostbyname_ex(os.uname()[1])
> ('bohol', [], ['130.209.252.70'])
> >>>
> {noformat}
> The solution is to fix local_fqdn in until.py, such that it falls back to the contents
of the variable me if fqdn is still None.
> Ta muchly.
> Craig

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


Mime
View raw message