Skip to content

[SPARK-46912][CORE] Using correct environment variables on workers of StandAlone cluster #51314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MeltonSmith
Copy link

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

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 SA cluster from a docker container which has a different environment than cluster.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant