HBASE-24175 [Flakey Tests] TestSecureExportSnapshot FileNotFoundException

Overwrite yarn configs that write /tmp dir by default.
This commit is contained in:
stack 2020-04-11 21:23:17 -07:00
parent 22675d8070
commit b00b5270f6
1 changed files with 14 additions and 0 deletions

View File

@ -418,6 +418,20 @@ public class HBaseTestingUtility extends HBaseZKTestingUtility {
"mapreduce.cluster.local.dir",
testPath, "mapred-local-dir");
// Frustrate yarn's attempts at writing /tmp.
String property = "yarn.node-labels.fs-store.root-dir";
createSubDir(property, testPath, property);
property = "yarn.nodemanager.log-dirs";
createSubDir(property, testPath, property);
property = "yarn.nodemanager.remote-app-log-dir";
createSubDir(property, testPath, property);
property = "yarn.timeline-service.entity-group-fs-store.active-dir";
createSubDir(property, testPath, property);
property = "yarn.timeline-service.entity-group-fs-store.done-dir";
createSubDir(property, testPath, property);
property = "yarn.nodemanager.remote-app-log-dir";
createSubDir(property, testPath, property);
return testPath;
}