[ 
https://issues.apache.org/jira/browse/MAPREDUCE-5275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670949#comment-13670949
 ] 

Zhijie Shen commented on MAPREDUCE-5275:
----------------------------------------

bq. I had an offline discussion with vinod, For this to work we would need 
build time dependency. What we should do here?

One way to walk around is as follows:
{code}
  public static Token<?> 
  getDelegationToken(Credentials credentials, String namenode) {
    return (Token<?>)
        credentials.getToken(new Text(namenode));
  }
{code}

No additional dependency is required, but is binary compatible.
                
> Mapreduce API: TokenCache incompatibility issues with MR1
> ---------------------------------------------------------
>
>                 Key: MAPREDUCE-5275
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5275
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>            Reporter: Zhijie Shen
>            Assignee: Mayank Bansal
>         Attachments: MAPREDUCE-5275-trunk-1.patch
>
>
> There're following incompatibility issues:
> * Token<DelegationTokenIdentifier> getDelegationToken(Credentials, String) is 
> removed
> * Credentials loadTokens(String, Configuration) changes to Credentials 
> loadTokens(String, JobConf)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to