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:30:50 UTC

[hbase] branch branch-2.3 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.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


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

commit f6ab5256610befa6c54722e9028ebe5f3ef333d5
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 a2e2e89..d4c3c13 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;
   }