Uh oh!
There was an error while loading. Please reload this page.
[SPARK-55115][INFRA] Auto-detect Java version in release scripts - #53892
Closed
cloud-fan wants to merge 1 commit into
Closed
[SPARK-55115][INFRA] Auto-detect Java version in release scripts#53892cloud-fan wants to merge 1 commit into
cloud-fan wants to merge 1 commit into
Conversation
### What changes were proposed in this pull request? Updated the `init_java` function in `release-util.sh` to auto-detect and set the appropriate Java version based on the Spark version being built: - Spark < 4.0: Uses Java 8 - Spark >= 4.0: Uses Java 17 ### Why are the changes needed? This allows a single Docker image (with multiple Java versions installed) to build all Spark versions. Combined with updates to the master branch's Dockerfile to install both Java 8 and 17, this eliminates the need to maintain separate Dockerfiles for each branch. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual testing by building releases with the updated scripts. ### Was this patch authored or co-authored using generative AI tooling? Yes.
cloud-fan
marked this pull request as draft
January 21, 2026 18:40
JIRA Issue Information=== Improvement SPARK-55115 === This comment was automatically generated by GitHub Actions |
HyukjinKwon
approved these changes
Jan 22, 2026
cloud-fan
commented
Jan 22, 2026
ContributorAuthor
This only fixes java version but not python version, switching to #53905 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Updated the
init_javafunction inrelease-util.shto auto-detect and set the appropriate Java version based on the Spark version being built:Why are the changes needed?
This allows a single Docker image (with multiple Java versions installed) to build all Spark versions. Combined with updates to the master branch's Dockerfile to install both Java 8 and 17, this eliminates the need to maintain separate Dockerfiles for each branch.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manual testing by building releases with the updated scripts.
Was this patch authored or co-authored using generative AI tooling?
Yes. cursor 2.3.41