Skip to content

Conversation

@littlexyw
Copy link

What changes were proposed in this pull request?

Append custom driver env to the end of spark-env.sh in driver pod to ensure precedence.

Why are the changes needed?

Within the Spark driver pod, the spark-submit script execution process sources the spark-env.sh configuration file. Environment variables defined by the user via spark.kubernetes.driverEnv.* configuration properties have the potential to be overridden by default variable definitions present in the spark-env.sh file.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

UT.

Was this patch authored or co-authored using generative AI tooling?

No.

@littlexyw littlexyw changed the title [SPARK-54605][K8S] Append custom driver env after spark-env.sh to ensure precedence [WIP][SPARK-54605][K8S] Append custom driver env after spark-env.sh to ensure precedence Dec 5, 2025
@littlexyw littlexyw changed the title [WIP][SPARK-54605][K8S] Append custom driver env after spark-env.sh to ensure precedence [SPARK-54605][K8S] Append custom driver env after spark-env.sh to ensure precedence Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant