Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
Enables renewal and cancellation of KMS delegation tokens. hadoop.security.key.provider.path needs to be configured to reach the key provider.
Description
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), 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.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-15390 Yarn RM logs flooded by DelegationTokenRenewer trying to renew KMS tokens
- Resolved
- depends upon
-
HADOOP-13228 Add delegation token to the connection in DelegationTokenAuthenticator
- Resolved
- is depended upon by
-
HADOOP-13251 Authenticate with Kerberos credentials when renewing KMS delegation token
- Resolved
- is related to
-
HADOOP-13838 KMSTokenRenewer should close providers
- Resolved