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

   
   
   ### What changes were proposed in this pull request?
   Propagating Spark Connect session user as a SparkContext local property. 
Currently user is added to the job description and not as a separate 
SparkContext property.
   
   
   ### Why are the changes needed?
   We use SparkConnect along with Ranger for RBAC 
(org.apache.kyuubi.plugin.spark.authz.ranger.RangerSparkExtension), which 
requires the user (currently it checks for "kyuubi.session.user", will add a 
fallback to check for "spark.connect.session.user")
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Tested it on local where the RangerSparkExtension was able to extract the 
user as expected. No tests were added because its a small, trivial and 
non-destructive, backward compatible new feature. 
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No
   


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