This is an automated email from the ASF dual-hosted git repository.

dongjoon-hyun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new e05ead52ceff [SPARK-60937][INFRA] Use Java 21 in Binder Dockerfile
e05ead52ceff is described below

commit e05ead52ceffb46143a93c6390e042ace2d2ca89
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Nov 5 13:13:46 2026 -0800

    [SPARK-60937][INFRA] Use Java 21 in Binder Dockerfile
    
    ### What changes were proposed in this pull request?
    
    This PR aims to install `openjdk-21-jre` instead of `openjdk-17-jre` in 
`binder/Dockerfile`.
    
    ### Why are the changes needed?
    
    Apache Spark 5.0.0 requires Java 21 as the minimum version (SPARK-60669), 
and the build rejects JDK 17. The Binder environment still installs a Java 17 
JRE, so it is broken on `master`.
    
    The base image `python:3.11-slim` is based on Debian trixie, which provides 
`openjdk-21-jre`.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No. This only affects the Binder (mybinder.org) environment of the `master` 
branch.
    
    ### How was this patch tested?
    
    Manual review. The Dockerfile was not built locally. The `openjdk-21` 
package was confirmed to exist in Debian trixie.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Sonnet 5.5
    
    Closes #60138 from dongjoon-hyun/SPARK-60937.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 binder/Dockerfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/binder/Dockerfile b/binder/Dockerfile
index 60b207fcf7d8..4223e8bd893c 100644
--- a/binder/Dockerfile
+++ b/binder/Dockerfile
@@ -36,7 +36,7 @@ USER ${USER}
 COPY . ${HOME}
 USER root
 RUN chown -R ${NB_UID} ${HOME}
-RUN apt-get update && apt-get install -y openjdk-17-jre git coreutils
+RUN apt-get update && apt-get install -y openjdk-21-jre git coreutils
 USER ${NB_USER}
 
 RUN binder/postBuild


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to