You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by la...@apache.org on 2021/03/31 16:55:00 UTC
[impala] branch master updated: IMPALA-10618: Update
bootstrap_system for Ubuntu 20.04
This is an automated email from the ASF dual-hosted git repository.
laszlog pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
The following commit(s) were added to refs/heads/master by this push:
new ec391ab IMPALA-10618: Update bootstrap_system for Ubuntu 20.04
ec391ab is described below
commit ec391ab25c690bddd7dd3f42410cb4882b186ddb
Author: Laszlo Gaal <la...@cloudera.com>
AuthorDate: Mon Mar 29 23:08:51 2021 +0200
IMPALA-10618: Update bootstrap_system for Ubuntu 20.04
Impala started adding Ubuntu 20.04 support in various places.
This patch extends bootstrap_config.sh for Ubuntu 20.04 coverage:
1. The runtime version check error message is updated to claim support
for Ubuntu 20.04.
2. Kudu needs libtinfo.5.so on Ubuntu 20.04 for the minicluster binaries.
bin/bootstrap_system.sh now installs it when running on Ubuntu 20.04.
3. The OpenJDK default version reset to JDK 8 is extended to Ubuntu 20.04.
Tested by running the code using docker/test-with-docker.py using
--base-image=ubuntu:20.04 and observing that Kudu was able to start in
the minicluster. The test runs completed, but there were test failures,
for which separate tickets will be filed.
Change-Id: I212f6df3657cf9d621a0669573e1e511eae13662
Reviewed-on: http://gerrit.cloudera.org:8080/17240
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
bin/bootstrap_system.sh | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/bin/bootstrap_system.sh b/bin/bootstrap_system.sh
index 352d9a3..ec7919f 100755
--- a/bin/bootstrap_system.sh
+++ b/bin/bootstrap_system.sh
@@ -115,7 +115,7 @@ else
UBUNTU20=true
echo "Identified Ubuntu 20.04 system."
else
- echo "This script only supports 16.04 or 18.04 of Ubuntu" >&2
+ echo "This script supports Ubuntu versions 16.04, 18.04 or 20.04" >&2
exit 1
fi
else
@@ -220,7 +220,8 @@ ubuntu apt-get --yes install ccache curl gawk g++ gcc libffi-dev \
libsasl2-modules libsasl2-modules-gssapi-mit libssl-dev make ninja-build \
python-dev python-setuptools postgresql ssh wget vim-common psmisc \
lsof openjdk-8-jdk openjdk-8-source openjdk-8-dbg apt-utils git ant
-
+# Required by Kudu in the minicluster
+ubuntu20 apt-get --yes install libtinfo5
ARCH_NAME=$(uname -p)
if [[ $ARCH_NAME == 'aarch64' ]]; then
ubuntu apt-get --yes install unzip pkg-config flex maven python3-pip build-essential \
@@ -252,10 +253,11 @@ fi
# Ubuntu 18.04 and 20.04 install OpenJDK 11 and configure it as the default Java version.
# Impala is currently tested with OpenJDK 8, so configure that version as the default.
if [[ $ARCH_NAME == 'aarch64' ]]; then
- ubuntu20 sudo update-java-alternatives -s java-1.8.0-openjdk-arm64
- ubuntu18 sudo update-java-alternatives -s java-1.8.0-openjdk-arm64
+ ubuntu20 sudo update-java-alternatives -s java-1.8.0-openjdk-arm64
+ ubuntu18 sudo update-java-alternatives -s java-1.8.0-openjdk-arm64
else
ubuntu18 sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
+ ubuntu20 sudo update-java-alternatives -s java-1.8.0-openjdk-amd64
fi
redhat sudo yum install -y curl gawk gcc gcc-c++ git krb5-devel krb5-server \