You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2011/03/14 21:57:30 UTC

[jira] Updated: (WHIRR-262) Services should not have to do reverse DNS lookups

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

Tom White updated WHIRR-262:
----------------------------

    Attachment: WHIRR-262.patch

Here's a patch which constructs the InetAddress instances with the correctly resolved hostname. We already do a reverse lookup for each host to write the instances file, so this shouldn't make things slower. 

On the other hand, we might consider making this lazier, by adding methods like getPublicIP(), getPublicHostName(), getPrivateIP(), getPrivateHostName() to Instance so that reverse lookups are performed only for the instances that need it. We could replace the public hostname in the instances file with an IP address.

> Services should not have to do reverse DNS lookups
> --------------------------------------------------
>
>                 Key: WHIRR-262
>                 URL: https://issues.apache.org/jira/browse/WHIRR-262
>             Project: Whirr
>          Issue Type: Improvement
>            Reporter: Tom White
>            Assignee: Tom White
>         Attachments: WHIRR-262.patch
>
>
> Currently Hadoop and HBase use DNSUtil to do reverse DNS lookups to get the correct public hostname, but the other services don't which means they may not run correctly in some environments (such as when launched from within EC2, see WHIRR-128 for background). The framework should do these lookups on the service's behalf.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira