Skip to content

[SPARK-46912][CORE] Preserve local environment variables' precedence#55669

Open
MeltonSmith wants to merge 1 commit intoapache:masterfrom
MeltonSmith:SPARK-46912
Open

[SPARK-46912][CORE] Preserve local environment variables' precedence#55669
MeltonSmith wants to merge 1 commit intoapache:masterfrom
MeltonSmith:SPARK-46912

Conversation

@MeltonSmith
Copy link
Copy Markdown

What changes were proposed in this pull request?

Fixing environment for stand alone cluster when launching driver/executor processes.

Why are the changes needed?

Fixing a bug when submitting to a standalone cluster from a machine which has different envs and paths
Closes #51314

Does this PR introduce any user-facing change?

Yes. According to https://issues.apache.org/jira/browse/SPARK-46912 when submitting to stand alone cluster in cluster mode, driver was trying to launch java on the path from JAVA_HOME, which, in turn, was taken from "submitter" machine not from the worker one. And java.IOException with "Cannot run program /${wrongPath}" is thrown.

How was this patch tested?

Unit tests.
Submitting to upgraded custom Stand Alone cluster from a docker container which has a different environment than cluster.

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

No

…in `CommandUtils` process builder creation and add tests.
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