hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/4] hbase git commit: HBASE-19317 Set a high NodeManager max disk utilization if not already set
Date Wed, 22 Nov 2017 22:32:15 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 0ef7a2424 -> 4e387a948
  refs/heads/master 548ebbc57 -> 6f0c9fbfd


HBASE-19317 Set a high NodeManager max disk utilization if not already set

This avoids the situation where the build machine has sufficient disk
space (a few GB's at most) to run an HBase test, but the default YARN
configuration would preclude the NM's from starting correctly. This
should eliminate a trivial source of build flakiness based on the host
machines being used.

Signed-off-by: Ted Yu <tedyu@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/6f0c9fbf
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/6f0c9fbf
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/6f0c9fbf

Branch: refs/heads/master
Commit: 6f0c9fbfd1f17f5f50d90464866d153286b051a5
Parents: b0b6064
Author: Josh Elser <elserj@apache.org>
Authored: Tue Nov 21 13:42:13 2017 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Wed Nov 22 17:06:49 2017 -0500

----------------------------------------------------------------------
 .../test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6f0c9fbf/hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
----------------------------------------------------------------------
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 bb7eca2..eec7892 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
@@ -2552,6 +2552,10 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility
{
    * @throws IOException When starting the cluster fails.
    */
   public MiniMRCluster startMiniMapReduceCluster() throws IOException {
+    // Set a very high max-disk-utilization percentage to avoid the NodeManagers from failing.
+    conf.setIfUnset(
+        "yarn.nodemanager.disk-health-checker.max-disk-utilization-per-disk-percentage",
+        "99.0");
     startMiniMapReduceCluster(2);
     return mrCluster;
   }


Mime
View raw message