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

Daryn Sharp updated HDFS-2652:
------------------------------

    Attachment: HDFS-2652.patch

Implements remaining changes to make hdfs compliant with host-based tokens.

Notable changes:
* {{HAUtil.cloneDelegationTokenForLogicalUri}}
** Takes a collection of all NN addresses instead of one.  The logical token is 
looked up once and duped to all NNs in once pass.
** Does not call the static token selector method that rewrites the service 
port (see below).
** Changed to use {{SecurityUtil.setTokenService}}.
* Hftp and WebHDFS token selectors are:
** Cleaned up to look for their own token and fall thru to a hdfs lookup with a 
rewritten port.
** URIs are used to ensure the original host survives the rpc port rewrite.
* {{selectHdfsDelegationToken}} rewrites service's port to lookup rpc tokens 
for a remote cluster.
** Replaced {{InetSocketAddress}} arg with a URI to ensure the original host in 
the URI is preserved when the address is reconstructed.
** The method is only applicable for hftp and webhdfs, so HA no longer uses the 
method.
** Signature made more compliant with other select method.
* Bunch of tests

                
> Port token service changes from 205
> -----------------------------------
>
>                 Key: HDFS-2652
>                 URL: https://issues.apache.org/jira/browse/HDFS-2652
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>    Affects Versions: 0.24.0, 0.23.1
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>         Attachments: HDFS-2652.patch
>
>
> Need to merge the 205 token bug fixes and the feature to enable 
> hostname-based tokens.  See jiras linked to HADOOP-7808 for more details.

--
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

        

Reply via email to