-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-28938][K8S] Move to supported OpenJDK docker image for Kubernetes #26037
Conversation
This comment has been minimized.
This comment has been minimized.
Thank you for making a PR, @viirya . |
Retest this please. |
Hmm, I was thinking to run the integration test on Jenkins. At least I remember I saw it in previous PRs. |
Yes. It's weird to me, too. |
I checked the Jenkins. And, found that it's running here. |
This comment has been minimized.
This comment has been minimized.
oh, thanks. @dongjoon-hyun. Seems Jenkins also posted the comment of Kubernetes integration test too. |
Let's see the result~ 😄 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Could you check the K8s IT failure? |
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.
Please fix python/Docker
file, too. There might be more dependency images in R
.
And, could you run K8s IT locally before updating this PR please?
@dongjoon-hyun Thanks. Updated Python and R Docker files. Let's see K8s IT result with latest change. If it has failure, I will change to a local environment which can run K8s IT. (current local env cannot) |
This comment has been minimized.
This comment has been minimized.
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.
It seems that there are two failures.
- R (Please see
pandoc
error in Jenkins log. It might be irrelevant to this one.) - Python (I hit this locally.)
ensurepip is disabled in Debian/Ubuntu for the system python.
Python modules For the system python are usually handled by dpkg and apt-get.
apt-get install python-<module name>
Install the python-pip package to use pip itself. Using pip together
with the system python might have unexpected results for any system installed
module, so use it on your own risk, or make sure to only use it in virtual
environments.
The command '/bin/sh -c apt install -y python && apt install -y python3 && python -m ensurepip && python3 -m ensurepip && rm -r /usr/lib/python*/ensurepip && pip install --upgrade pip setuptools && rm -r /root/.cache && rm -rf /var/cache/apt/*' returned a non-zero code: 1
Failed to build PySpark Docker image, please refer to Docker build output for details.
About R (Please see pandoc error in Jenkins log. It might be irrelevant to this one.), I think it is happened before K8s IT stuff, according to the log. There is another ongoing K8s IT build. Let's see the latest result and do necessary change if it needs. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
And yes, ensurepip is a problem. Let me update and test locally. |
Test build #111833 has finished for PR 26037 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status success |
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.
+1, LGTM. Thank you, @viirya .
Merged to master.
Could you make a backport PR to |
ok.
…On Mon, Oct 7, 2019, 08:56 Dongjoon Hyun ***@***.***> wrote:
Could you make a backport to branch-2.4, @viirya
<https://github.com/viirya> ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26037?email_source=notifications&email_token=AAAQZ52XPIWPJ6TPYVM764LQNNL2HA5CNFSM4I55M4MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAQ3UEA#issuecomment-539081232>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAQZ573BCRVUH3E4J3R2HTQNNL2HANCNFSM4I55M4MA>
.
|
The current docker image used by Kubernetes is `openjdk:8-alpine`. It was not supported and was removed with the commit docker-library/openjdk@3eb0351#diff-f95ffa3d1377774732c33f7b8368e099. This PR proposes to move to a supported docker image. I think there are at least two reasons: 1. According to the commit, Alpine/musl is not officially supported by the OpenJDK project. 2. As no more OpenJDK 8 Alpine images, new JDK updates including security fixes , are not applied to it. See below: ``` docker run -it --rm openjdk:8-alpine java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (IcedTea 3.12.0) (Alpine 8.212.04-r0) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) ``` ``` docker run -it --rm openjdk:8-jdk-slim java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) ``` Yes. This changes the base docker image of Spark. Existing tests. Closes apache#26037 from viirya/SPARK-28938. Authored-by: Liang-Chi Hsieh <viirya@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
…tes (#616) [SPARK-28938][K8S] Move to supported OpenJDK docker image for Kubernetes The current docker image used by Kubernetes is `openjdk:8-alpine`. It was not supported and was removed with the commit docker-library/openjdk@3eb0351#diff-f95ffa3d1377774732c33f7b8368e099. This PR proposes to move to a supported docker image. I think there are at least two reasons: 1. According to the commit, Alpine/musl is not officially supported by the OpenJDK project. 2. As no more OpenJDK 8 Alpine images, new JDK updates including security fixes , are not applied to it. See below: ``` docker run -it --rm openjdk:8-alpine java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (IcedTea 3.12.0) (Alpine 8.212.04-r0) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) ``` ``` docker run -it --rm openjdk:8-jdk-slim java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) ``` Yes. This changes the base docker image of Spark. Existing tests. Closes apache#26037 from viirya/SPARK-28938. Authored-by: Liang-Chi Hsieh <viirya@gmail.com> Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
What changes were proposed in this pull request?
The current docker image used by Kubernetes is
openjdk:8-alpine
. It was not supported and was removed with the commit docker-library/openjdk@3eb0351#diff-f95ffa3d1377774732c33f7b8368e099.This PR proposes to move to a supported docker image.
Why are the changes needed?
I think there are at least two reasons:
, are not applied to it. See below:
Does this PR introduce any user-facing change?
Yes. This changes the base docker image of Spark.
How was this patch tested?
Existing tests.