You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2020/04/13 18:31:17 UTC

[hbase] branch branch-2.2 updated: HBASE-24175 [Flakey Tests] TestSecureExportSnapshot FileNotFoundException Overwrite yarn configs that write /tmp dir by default.

This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.2 by this push:
     new 13477f6  HBASE-24175 [Flakey Tests] TestSecureExportSnapshot FileNotFoundException Overwrite yarn configs that write /tmp dir by default.
13477f6 is described below

commit 13477f6df2b89ad10906b31418f907f36fb92eb3
Author: stack <st...@apache.org>
AuthorDate: Sat Apr 11 21:23:17 2020 -0700

    HBASE-24175 [Flakey Tests] TestSecureExportSnapshot FileNotFoundException
    Overwrite yarn configs that write /tmp dir by default.
---
 .../java/org/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 804d264..e78b7d2 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
@@ -454,6 +454,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;
   }