[HUDI-980] Fixing dir path for metastore_db and derby.logs generated in hive tests (#1688)
This commit is contained in:
committed by
GitHub
parent
5a0d3f1cf9
commit
7fb1251c6e
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user