hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jitendra Nath Pandey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7510) Tokens should use original hostname provided instead of ip
Date Thu, 01 Sep 2011 01:17:10 GMT

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

Jitendra Nath Pandey commented on HADOOP-7510:

> The trick is to instantiate an InetAddress with an exact hostname (whether ip or host)
and it's ip – this prevents 
> any dns lookups when getHostName is invoked.
  This seems to be fragile because InetSocketAddress API doesn't gaurantee that dns lookup
will not be invoked.

I had discussion with Owen and there seems to be a compatibility issue as well. The new tokens
will not work with old clients. For example a new client obtained a token and sets service
to hostname:port. Now this token is sent over hftp and is finally used at an old client, the
old client will not be able to use this token.

> Tokens should use original hostname provided instead of ip
> ----------------------------------------------------------
>                 Key: HADOOP-7510
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7510
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: security
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>             Fix For:
>         Attachments: HADOOP-7510.patch
> Tokens currently store the ip:port of the remote server.  This precludes tokens from
being used after a host's ip is changed.  Tokens should store the hostname used to make the
RPC connection.  This will enable new processes to use their existing tokens.

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


View raw message