From: J. Eric Ivancich Date: Mon, 16 Dec 2024 18:21:35 +0000 (-0500) Subject: qa/rgw: force Hadoop to run under Java 1.8 X-Git-Tag: testing/wip-vshankar-testing-20241219.063429-debug~27^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c5503187af96dc0179265dc84b2716df851e4cdf;p=ceph-ci.git qa/rgw: force Hadoop to run under Java 1.8 The Hadoop test installs Java 1.8 but then just runs the default version. This makes sure it will run the version it installed. Signed-off-by: J. Eric Ivancich --- diff --git a/qa/tasks/s3a_hadoop.py b/qa/tasks/s3a_hadoop.py index 717d9858e60..4518a6f397c 100644 --- a/qa/tasks/s3a_hadoop.py +++ b/qa/tasks/s3a_hadoop.py @@ -213,6 +213,7 @@ def run_s3atest(client, maven_version, testdir, test_options): run.Raw('&&'), run.Raw(rm_test), run.Raw('&&'), + run.Raw('JAVA_HOME=$(alternatives --list | grep jre_1.8.0 | head -n 1 | awk \'{print $3}\')'), run.Raw(run_test), run.Raw(test_options) ]