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

Arun Suresh commented on HADOOP-13155:
--------------------------------------

Thanks for taking this up [~xiaochen]..

IIRC, the reason why we had not implemented the renewer for KMS was that we 
were catering to {{FileSystem}} and {{DistributedFileSystem}} API which at that 
point had only an {{addDelegationTokens()}}.

So, I guess it is a good idea to add a Renewer for KMS-DTs. Will go over you 
patch in more detail over the weekend.

bq. Since looks like MiniKMS is setup with PseudoAuthenticationHandler by 
default (didn't find a way to configure auth type before starting MiniKMS.
I remember testing KMS via {{TestKMS}} using the 
{{KerberosDelegationTokenAuthenticationHandler}}. Take a look at 
{{TestKMS::testStartStop}} method where we do a 
{{conf.set("hadoop.kms.authentication.type", "kerberos")}} before running the 
KMS server.


> Implement TokenRenewer in KMS and HttpFS
> ----------------------------------------
>
>                 Key: HADOOP-13155
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13155
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>         Attachments: HADOOP-13155.pre.patch
>
>
> Service DelegationToken (DT) renewal is done in Yarn by 
> {{org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer}},
>  where it calls {{Token#renew}} and uses ServiceLoader to find the renewer 
> class 
> ([code|https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java#L382]),
>  and invokes the renew method from it.
> We seem to miss the token renewer class in KMS / HttpFSFileSystem, and hence 
> Yarn defaults to {{TrivialRenewer}} for DT of such kinds, resulting in the 
> token not being renewed.
> As a side note, {{HttpFSFileSystem}} does have a {{renewDelegationToken}} 
> API, but I don't see it invoked in hadoop code base. KMS does not have any 
> renew hook.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to