-
Notifications
You must be signed in to change notification settings - Fork 52
[SPARK-43305] Add support for java 17 from spark 3.5.0 #56
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
Conversation
|
It seems to me that the builds are failing due to insufficient storage on the runners. Maybe it's possible to try switching to larger runners? |
|
I never hit this before, but if it is storage limit, you could try to remove some tmp file to save space, such as: It's about to save 80MB (later upadte) I also noticed this change also apply on main repo: https://github.com/apache/spark/blob/master/.github/workflows/build_and_test.yml#L1045
remove |
added removing |
to this: @Yikun could you trigger the builds one more time? |
|
All tests have passed except the 3.3.2 build. The 3.3.2 build fails due to an issue with the GPG key on But that's probably not relevant to this PR? Apart from that, the PR is ready for review. |
|
@viirya Hi, Would you mind taking a look on 3.3.2 release key issue. It might needs your help to upload the public key to opengpg, see [1] as ref. [1] #55 (comment) |
|
@Yikun Just uploaded to openpgp. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except some tiny nits, Please also make sure:
- All dockerfiles and entrypoint.sh should be generated by
add-dockerfiles.sh - It would be better if you can publish these images in your local repo to test (by appending a local change line in your local branch .github/workflows/publish.yml L50), It's just a test but shouldn't be changed in this PR.
Thanks for your efforts, I believe this PR will be merged soon.
All 3.5.0 dockerfiles and entrypoints were generated using the add-dockerfiles.sh
I've published the images in my forked repository. Let me know if anything else is needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only one minor nit for me.
I also use tools/manifest.py manifest to check the versions.json, looks good! Thanks for your efforts!
$ tools/manifest.py manifest
Maintainers: Apache Spark Developers <[email protected]> (@ApacheSpark)
GitRepo: https://github.com/apache/spark-docker.git
Tags: 3.5.0-scala2.12-java17-python3-ubuntu, 3.5.0-java17-python3, 3.5.0-java17, python3-java17
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java17-python3-ubuntu
Tags: 3.5.0-scala2.12-java17-r-ubuntu, 3.5.0-java17-r
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java17-r-ubuntu
Tags: 3.5.0-scala2.12-java17-ubuntu, 3.5.0-java17-scala
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java17-ubuntu
Tags: 3.5.0-scala2.12-java17-python3-r-ubuntu
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java17-python3-r-ubuntu
Tags: 3.5.0-scala2.12-java11-python3-ubuntu, 3.5.0-python3, 3.5.0, python3, latest
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java11-python3-ubuntu
Tags: 3.5.0-scala2.12-java11-r-ubuntu, 3.5.0-r, r
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java11-r-ubuntu
Tags: 3.5.0-scala2.12-java11-ubuntu, 3.5.0-scala, scala
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java11-ubuntu
Tags: 3.5.0-scala2.12-java11-python3-r-ubuntu
Architectures: amd64, arm64v8
GitCommit: 277235945e8b9774cb927dd0f4bffdac38908352
Directory: ./3.5.0/scala2.12-java11-python3-r-ubuntu
add-dockerfiles.sh
Outdated
| scala2.12-java17-python3-r-ubuntu | ||
| scala2.12-java17-python3-ubuntu | ||
| scala2.12-java17-r-ubuntu | ||
| scala2.12-java17-ubuntu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because we only add after 3.5 version, so we should skip 3.3 / 3.4 version. So seems we need some thing like below:
if ! echo $VERSION | grep -Eq "^3.3|^3.4"; then
TAGS+="
scala2.12-java17-python3-r-ubuntu
scala2.12-java17-python3-ubuntu
scala2.12-java17-r-ubuntu
scala2.12-java17-ubuntu
"
fiThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
cc @HyukjinKwon @zhengruifeng Would you mind also taking a look? |
|
@Yikun maybe we can have this PR merged even without @HyukjinKwon and @zhengruifeng approval? This will not impact the existing images |
|
Waiting for this one for a while now, thank you @vakarisbk for this PR, would love to see it merged! |
|
Thanks for your efforts @vakarisbk , I'm going to merge this PR later today or tomorrow. |
|
@vakarisbk Merged to master. Thanks all! |
https://github.com/apache/spark-docker/pkgs/container/spark-docker%2Fspark
The content can be generated by |
What changes were proposed in this pull request?
scala2.12-java17-*Why are the changes needed?
Spark supports multiple Java versions, but the images are currently built only with Java 11.
Does this PR introduce any user-facing change?
New images would be available in the repositories.
How was this patch tested?