hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bibinchund...@apache.org
Subject hadoop git commit: YARN-9069. Fix SchedulerInfo#getSchedulerType for custom schedulers. Contributed by Bilwa S T.
Date Thu, 29 Nov 2018 16:42:36 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-3.0 4c238b50d -> b42c2679a


YARN-9069. Fix SchedulerInfo#getSchedulerType for custom schedulers. Contributed by Bilwa
S T.

(cherry picked from commit 07142f54a8c7f70857e99c041f3a2a5189c809b5)


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

Branch: refs/heads/branch-3.0
Commit: b42c2679ad24f0a5f9a48490b002351db7b7a6a1
Parents: 4c238b5
Author: bibinchundatt <bibinchundatt@apache.org>
Authored: Thu Nov 29 22:02:59 2018 +0530
Committer: bibinchundatt <bibinchundatt@apache.org>
Committed: Thu Nov 29 22:08:48 2018 +0530

----------------------------------------------------------------------
 .../yarn/server/resourcemanager/webapp/dao/SchedulerInfo.java      | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/b42c2679/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/SchedulerInfo.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/SchedulerInfo.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/SchedulerInfo.java
index 81491b1..ae6b3d3 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/SchedulerInfo.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/SchedulerInfo.java
@@ -53,6 +53,8 @@ public class SchedulerInfo {
       this.schedulerName = "Fair Scheduler";
     } else if (rs instanceof FifoScheduler) {
       this.schedulerName = "Fifo Scheduler";
+    } else {
+      this.schedulerName = rs.getClass().getSimpleName();
     }
     this.minAllocResource = new ResourceInfo(rs.getMinimumResourceCapability());
     this.maxAllocResource = new ResourceInfo(rs.getMaximumResourceCapability());


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message