[
https://issues.apache.org/jira/browse/HADOOP-13155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15284948#comment-15284948
]
Xiao Chen commented on HADOOP-13155:
------------------------------------
Following a quick chat and advice from [~yzhangal], here's more details on how
other tokens are handled:
- {{DFSClient$Renewer}} handles {{HDFS_DELEGATION_TOKEN}}
- {{TokenAspect$TokenManager}} handles {{HFTP delegation}}, {{HSFTP
delegation}}, {{WEBHDFS delegation}}, {{SWEBHDFS delegation}}. (No httpfs, but
didn't find httpfs-specific kind either)
- There are other similar classes in yarn/mr to handle corresponding tokens
- As mentioned above, no renewer class handles {{kms-dt}}
> 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
>
> DelegationToken is done in Yarn by {{DelegationTokenRenewer}}, where it calls
> {{Token#renew}} and uses ServiceLoader to get 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])
> We seem to miss the token renewer class in KMS/HttpFSFileSystem, and hence
> Yarn defaults to {{TrivialRenewer}} for DT of these kinds, resulting in the
> token not 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]