Laszlo Gaal has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23720


Change subject: CDPD-89238: Force Java alternative after setup on Rocky and Red 
Hat Linux
......................................................................

CDPD-89238: Force Java alternative after setup on Rocky and Red Hat Linux

Impala allows various Java versions to be selected for its build and
runtime environment when bin/bootstrap_system.sh is used to set up the
environment. Unfortunately this setup failed to affect the current Java
JRE and compiler tools on Red Hat Linux and compatibles (e.g. Rocky
Linux), because bootstrap_system.sh failed to set up the requested
version in the "alternatives" subsystem. The same failure was not
observed on Ubuntu versions, on that platform `update_java_alternatives`
was correctly run for the same purpose.

This patch adds calls to `alternatives` to set the JRE and JDK
environments to the requested version. This benefits automated test runs
in Impala's pre- and post-commit environments as well as individual
workstation setups.

Change-Id: I2f73489486235d7ad4449f9203afe8a4dc797658
---
M bin/bootstrap_system.sh
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/20/23720/1
--
To view, visit http://gerrit.cloudera.org:8080/23720
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f73489486235d7ad4449f9203afe8a4dc797658
Gerrit-Change-Number: 23720
Gerrit-PatchSet: 1
Gerrit-Owner: Laszlo Gaal <[email protected]>

Reply via email to