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

Owen O'Malley updated MAPREDUCE-2764:
-------------------------------------

    Attachment: token-renew.patch

I'm in the middle of testing this patch, but I wanted to put it out for early 
review.

It:
  1. Defines isManaged, renew and cancel methods on Tokens.
  2. Uses ServiceLoader to find implementations of TokenRenewers to renew and 
cancel tokens.
  3. Fixes to Hftp to support token renewal. In particular, it sets the kind to 
hftp and the service is always the http port. When the tokens are sent to the 
server, they are converted to hdfs tokens.
  4. Backport of HDFS-1187 to enable my testing.
  5. Massive simplification of the jobtracker's token renew/canceling code.

> Fix renewal of dfs delegation tokens
> ------------------------------------
>
>                 Key: MAPREDUCE-2764
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2764
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Daryn Sharp
>            Assignee: Daryn Sharp
>             Fix For: 0.20.205.0
>
>         Attachments: MAPREDUCE-2764-2.patch, MAPREDUCE-2764-3.patch, 
> MAPREDUCE-2764-4.patch, MAPREDUCE-2764.patch, delegation.patch, 
> token-renew.patch
>
>
> The JT may have issues renewing hftp tokens which disrupt long distcp jobs.  
> The problem is the JT's delegation token renewal code is built on brittle 
> assumptions.  The token's service field contains only the "ip:port" pair.  
> The renewal process assumes that the scheme must be hdfs.  If that fails due 
> to a {{VersionMismatchException}}, it tries https based on another assumption 
> that it must be hftp if it's not hdfs.  A number of other exceptions, most 
> commonly {{IOExceptions}}, can be generated which fouls up the renewal since 
> it won't fallback to https.

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

        

Reply via email to