This is an automated email from the ASF dual-hosted git repository. joemcdonnell pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/impala.git
commit a53117214f38160b1c37c5e7c86a35f4b455dc24 Author: Laszlo Gaal <[email protected]> AuthorDate: Sun Jul 20 21:16:44 2025 +0200 IMPALA-14255: Install Java 17 in bootstrap_build.sh This patch bumps the Java version installed during bootstrap_build.sh to Java 17 to keep the precommit environment consistently on Java 17. bin/bootstrap_build.sh is a simplified setup script used instead of bootstrap_system.sh when setting up an Impala environment limited to compilation only. It is used mainly during the initial, lightweight precommit checks on jenkins.impala.io when a patchset is submitted for review. This setup script was not updated with the Java version change from Java 8 to Java 17, so it became out of synch with the general assumption of building Impala 5.x versions for Java 17. This patch also removes a special case reserved for Ubuntu 14.04, which is now not supported by Impala. Tested automatically by submitting the patch for review. Change-Id: I796c6004e13aeca536b339fee765f79f39cc2ea1 Reviewed-on: http://gerrit.cloudera.org:8080/23201 Reviewed-by: Jason Fehr <[email protected]> Reviewed-by: Michael Smith <[email protected]> Tested-by: Michael Smith <[email protected]> --- bin/bootstrap_build.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bin/bootstrap_build.sh b/bin/bootstrap_build.sh index 94d547eab..7b41637e7 100755 --- a/bin/bootstrap_build.sh +++ b/bin/bootstrap_build.sh @@ -32,8 +32,9 @@ set -euxo pipefail # Install non-java dependencies: # Kerberos setup would pop up dialog boxes without this export DEBIAN_FRONTEND=noninteractive -sudo -E apt-get update -sudo -E apt-get --yes install g++ gcc git libsasl2-dev libssl-dev make python-dev \ +sudo -E apt-get --quiet update +sudo -E apt-get --yes --quiet install \ + g++ gcc git libsasl2-dev libssl-dev make python-dev \ python-setuptools python3-dev python3-setuptools python3-venv libffi-dev \ libkrb5-dev krb5-admin-server krb5-kdc krb5-user libxml2-dev libxslt-dev @@ -55,12 +56,8 @@ if [[ $DISTRIB_ID == Ubuntu && $DISTRIB_RELEASE == 20.04 ]]; then fi fi -JDK_VERSION=8 -if [[ $DISTRIB_RELEASE = 14.04 ]] -then - JDK_VERSION=7 -fi -sudo apt-get --yes install openjdk-${JDK_VERSION}-jdk openjdk-${JDK_VERSION}-source +JDK_VERSION=17 +sudo apt-get --yes --quiet install openjdk-${JDK_VERSION}-jdk openjdk-${JDK_VERSION}-source export JAVA_HOME=/usr/lib/jvm/java-${JDK_VERSION}-openjdk-amd64 # Download Maven since the packaged version is pretty old.
