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

   ### What changes were proposed in this pull request?
   
   The PR fixes the authentication failure of the proxy user on driver side 
while accessing kerberized hdfs through spark on k8s job. It follows the 
similar approach as it was done for Mesos: 
https://github.com/mesosphere/spark/pull/26
   
    ### Why are the changes needed?
   
   When we try to access the kerberized HDFS through a proxy user in Spark Job 
running in cluster deploy mode with Kubernetes resource manager, we encounter 
AccessControlException. This is because  authentication in driver is done using 
tokens of the proxy user and since proxy user doesn't have any delegation 
tokens on driver, auth fails.
   
   Further details:
   
https://issues.apache.org/jira/browse/SPARK-25355?focusedCommentId=17532063&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17532063
   
    
https://issues.apache.org/jira/browse/SPARK-25355?focusedCommentId=17532135&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17532135
   
    ### Does this PR introduce _any_ user-facing change?
   
   Yes, user will now be able to use proxy-user to access kerberized hdfs with 
Spark on K8s.
   
    
   ### How was this patch tested?
   
   The patch was tested by:
   
   1. Running job which accesses kerberized hdfs with proxy user in cluster 
mode and client mode with kubernetes resource manager.
   
   2. Running job which accesses kerberized hdfs without proxy user in cluster 
mode and client mode with kubernetes resource manager.
   
   3. Build and run test github action : 
https://github.com/shrprasa/spark/actions/runs/3051203625


-- 
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