dongjoon-hyun commented on pull request #33007: URL: https://github.com/apache/spark/pull/33007#issuecomment-867871116
It's because Java 11 doesn't have JRE as Java language feature. When we do install `apt-get update; apt-get install openjdk-8-jdk -y` on the vanilla Ubuntu. `java` points `JRE Java`. **JAVA 8** ``` $ docker run -it --rm ubuntu:21.04 /bin/bash $ apt-get update; apt-get install openjdk-8-jdk -y root@c34d6662cd1d:/# which java /usr/bin/java root@c34d6662cd1d:/# ls -al /usr/bin/java lrwxrwxrwx 1 root root 22 Jun 24 18:42 /usr/bin/java -> /etc/alternatives/java root@c34d6662cd1d:/# ls -al /etc/alternatives/java lrwxrwxrwx 1 root root 46 Jun 24 18:42 /etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java ``` **JAVA 11** ``` $ docker run -it --rm ubuntu:21.04 /bin/bash $ apt-get update; apt-get install openjdk-11-jdk -y root@8e4884f5da28:/# which java /usr/bin/java root@8e4884f5da28:/# ls -al /usr/bin/java lrwxrwxrwx 1 root root 22 Jun 24 18:41 /usr/bin/java -> /etc/alternatives/java root@8e4884f5da28:/# ls -al /etc/alternatives/java lrwxrwxrwx 1 root root 43 Jun 24 18:41 /etc/alternatives/java -> /usr/lib/jvm/java-11-openjdk-amd64/bin/java ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
