attilapiros opened a new pull request, #38048:
URL: https://github.com/apache/spark/pull/38048

   ### What changes were proposed in this pull request?
   
   When the delegation token is fetched at the first time (see the 
`fetchDelegationTokens()` call at 
`HadoopFSDelegationTokenProvider#getTokenRenewalInterval()`) the principal is 
the current user but at the subsequent token renewals (see 
`obtainDelegationTokens()` where `getTokenRenewer()` is used to identify the 
principal) are using a Hadoop/Yarn specific principal even on resource managers 
different from YARN.
   
   
   ### Why are the changes needed?
   
   To avoid `org.apache.hadoop.security.AccessControlException: Permission 
denied.` for long running applications.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Manually.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to