Skip to content

[SPARK-56999][CONNECT] Propagate Spark Connect session user as a SparkContext local property#55917

Open
hit2024 wants to merge 1 commit into
apache:masterfrom
hit2024:SPARK-56891
Open

[SPARK-56999][CONNECT] Propagate Spark Connect session user as a SparkContext local property#55917
hit2024 wants to merge 1 commit into
apache:masterfrom
hit2024:SPARK-56891

Conversation

@hit2024
Copy link
Copy Markdown

@hit2024 hit2024 commented May 16, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant