Skip to content

Commit f6ab525

Browse files
committed
HBASE-24175 [Flakey Tests] TestSecureExportSnapshot FileNotFoundException
Overwrite yarn configs that write /tmp dir by default.
1 parent 80011db commit f6ab525

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,20 @@ protected Path setupDataTestDir() {
457457
"mapreduce.cluster.local.dir",
458458
testPath, "mapred-local-dir");
459459

460+
// Frustrate yarn's attempts at writing /tmp.
461+
String property = "yarn.node-labels.fs-store.root-dir";
462+
createSubDir(property, testPath, property);
463+
property = "yarn.nodemanager.log-dirs";
464+
createSubDir(property, testPath, property);
465+
property = "yarn.nodemanager.remote-app-log-dir";
466+
createSubDir(property, testPath, property);
467+
property = "yarn.timeline-service.entity-group-fs-store.active-dir";
468+
createSubDir(property, testPath, property);
469+
property = "yarn.timeline-service.entity-group-fs-store.done-dir";
470+
createSubDir(property, testPath, property);
471+
property = "yarn.nodemanager.remote-app-log-dir";
472+
createSubDir(property, testPath, property);
473+
460474
return testPath;
461475
}
462476

0 commit comments

Comments
 (0)