This is an automated email from the ASF dual-hosted git repository. yihua pushed a commit to branch branch-0.x in repository https://gitbox.apache.org/repos/asf/hudi.git
commit ed5e8a64e5653b662a8674a4cb00c0c893c42996 Author: Danny Chan <[email protected]> AuthorDate: Fri Apr 26 14:26:26 2024 +0800 [HUDI-7672] Fix the Hive server scratch dir for tests in hudi-utilities (#11097) Currently a null/hive/${user} dir would be left over when the tests finished, which introduces some permission access issues for Azure CI test reports. --- .../java/org/apache/hudi/utilities/testutils/UtilitiesTestBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hudi-utilities/src/test/java/org/apache/hudi/utilities/testutils/UtilitiesTestBase.java b/hudi-utilities/src/test/java/org/apache/hudi/utilities/testutils/UtilitiesTestBase.java index 8887f772d7c..5eec800a060 100644 --- a/hudi-utilities/src/test/java/org/apache/hudi/utilities/testutils/UtilitiesTestBase.java +++ b/hudi-utilities/src/test/java/org/apache/hudi/utilities/testutils/UtilitiesTestBase.java @@ -139,7 +139,6 @@ public class UtilitiesTestBase { public static void initTestServices(boolean needsHdfs, boolean needsHive, boolean needsZookeeper) throws Exception { hadoopConf = HoodieTestUtils.getDefaultHadoopConf(); - hadoopConf.set("hive.exec.scratchdir", System.getenv("java.io.tmpdir") + "/hive"); if (needsHdfs) { hdfsTestService = new HdfsTestService(hadoopConf); @@ -153,6 +152,7 @@ public class UtilitiesTestBase { } storage = HoodieStorageUtils.getStorage(fs); + hadoopConf.set("hive.exec.scratchdir", basePath + "/.tmp/hive"); if (needsHive) { hiveTestService = new HiveTestService(hadoopConf); hiveServer = hiveTestService.start();
