From 9067dfe83ced4eb5348306947ac5d6ef1f83e93b Mon Sep 17 00:00:00 2001 From: stack Date: Sat, 11 Apr 2020 21:23:17 -0700 Subject: [PATCH] HBASE-24175 [Flakey Tests] TestSecureExportSnapshot FileNotFoundException Overwrite yarn configs that write /tmp dir by default. --- .../apache/hadoop/hbase/HBaseTestingUtility.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index a2e2e891a3..d4c3c131b0 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -457,6 +457,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; } -- 2.19.1