mirror of
https://github.com/apache/impala.git
synced 2026-02-02 06:00:36 -05:00
Makes it simpler to build with one JDK and run tests with another. TEST_JDK_VERSION sets IMPALA_JDK_VERSION before running tests, so the Impala cluster is started with that JDK. TEST_JAVA_HOME_OVERRIDE sets IMPALA_JAVA_HOME_OVERRIDE if a non-OS version of Java is required. Restart Kudu with original JAVA_HOME in frontend tests. Also skips restarting Hive, Kudu, and Ranger in tests as they'll restart with a different JDK than originally started with. Testing: 1. built normally 2. ran "TEST_JDK_VERSION=17 run-all-tests.sh" 3. verified various logs contain "java.specification.version:17" Change-Id: I46b5515efd9537d63b843dbc42aa93b376efce00 Reviewed-on: http://gerrit.cloudera.org:8080/20143 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>