|
@@ -27,6 +27,7 @@ import javax.xml.bind.annotation.XmlType;
|
|
import org.apache.hadoop.util.StringUtils;
|
|
import org.apache.hadoop.util.StringUtils;
|
|
import org.apache.hadoop.security.authorize.AccessControlList;
|
|
import org.apache.hadoop.security.authorize.AccessControlList;
|
|
import org.apache.hadoop.yarn.security.AccessType;
|
|
import org.apache.hadoop.yarn.security.AccessType;
|
|
|
|
+import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue;
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CSQueue;
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CSQueue;
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler;
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler;
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration;
|
|
import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration;
|
|
@@ -46,6 +47,7 @@ public class CapacitySchedulerInfo extends SchedulerInfo {
|
|
protected float usedCapacity;
|
|
protected float usedCapacity;
|
|
protected float maxCapacity;
|
|
protected float maxCapacity;
|
|
protected String queueName;
|
|
protected String queueName;
|
|
|
|
+ private boolean isAbsoluteResource;
|
|
protected CapacitySchedulerQueueInfoList queues;
|
|
protected CapacitySchedulerQueueInfoList queues;
|
|
protected QueueCapacitiesInfo capacities;
|
|
protected QueueCapacitiesInfo capacities;
|
|
protected CapacitySchedulerHealthInfo health;
|
|
protected CapacitySchedulerHealthInfo health;
|
|
@@ -75,6 +77,9 @@ public class CapacitySchedulerInfo extends SchedulerInfo {
|
|
health = new CapacitySchedulerHealthInfo(cs);
|
|
health = new CapacitySchedulerHealthInfo(cs);
|
|
maximumAllocation = new ResourceInfo(parent.getMaximumAllocation());
|
|
maximumAllocation = new ResourceInfo(parent.getMaximumAllocation());
|
|
|
|
|
|
|
|
+ isAbsoluteResource = parent.getCapacityConfigType() ==
|
|
|
|
+ AbstractCSQueue.CapacityConfigType.ABSOLUTE_RESOURCE;
|
|
|
|
+
|
|
CapacitySchedulerConfiguration conf = cs.getConfiguration();
|
|
CapacitySchedulerConfiguration conf = cs.getConfiguration();
|
|
queueAcls = new QueueAclsInfo();
|
|
queueAcls = new QueueAclsInfo();
|
|
for (Map.Entry<AccessType, AccessControlList> e : conf
|
|
for (Map.Entry<AccessType, AccessControlList> e : conf
|