YARN-9069. Fix SchedulerInfo#getSchedulerType for custom schedulers. Contributed by Bilwa S T.
This commit is contained in:
parent
a68d766e87
commit
07142f54a8
@ -54,6 +54,8 @@ public SchedulerInfo(final ResourceManager rm) {
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user