1
0

[HUDI-980] Fixing dir path for metastore_db and derby.logs generated in hive tests (#1688)

This commit is contained in:
Sivabalan Narayanan
2020-05-29 20:42:20 -04:00
committed by GitHub
parent 5a0d3f1cf9
commit 7fb1251c6e

View File

@@ -154,6 +154,7 @@ public class HiveTestService {
File derbyLogFile = new File(localHiveDir, "derby.log");
derbyLogFile.createNewFile();
setSystemProperty("derby.stream.error.file", derbyLogFile.getPath());
setSystemProperty("derby.system.home", localHiveDir.getAbsolutePath());
conf.set(HiveConf.ConfVars.METASTOREWAREHOUSE.varname,
Files.createTempDirectory(System.currentTimeMillis() + "-").toFile().getAbsolutePath());
conf.set("datanucleus.schema.autoCreateTables", "true");