Skip to content

Commit c550318

Browse files
committed
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 <[email protected]>
1 parent 3725c74 commit c550318

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qa/tasks/s3a_hadoop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def run_s3atest(client, maven_version, testdir, test_options):
213213
run.Raw('&&'),
214214
run.Raw(rm_test),
215215
run.Raw('&&'),
216+
run.Raw('JAVA_HOME=$(alternatives --list | grep jre_1.8.0 | head -n 1 | awk \'{print $3}\')'),
216217
run.Raw(run_test),
217218
run.Raw(test_options)
218219
]

0 commit comments

Comments
 (0)