This is an automated email from the ASF dual-hosted git repository. snemeth pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push: new bb1135c YARN-10894. Follow up YARN-10237: fix the new test case in TestRMWebServicesCapacitySched. Contributed by Tamas Domok bb1135c is described below commit bb1135c77c34ca5dcd8d43fca31c635b65bf3638 Author: Szilard Nemeth <snem...@apache.org> AuthorDate: Thu Feb 17 19:12:51 2022 +0100 YARN-10894. Follow up YARN-10237: fix the new test case in TestRMWebServicesCapacitySched. Contributed by Tamas Domok --- .../webapp/TestRMWebServicesCapacitySched.java | 2 +- .../TestRMWebServicesSchedulerActivities.java | 4 +- .../scheduler-response-NodeLabelDefaultAPI.xml | 491 ++++++++++++++++++++- .../scheduler-response-PerUserResources.json | 487 +++++++++++++++++++- .../webapp/scheduler-response-PerUserResources.xml | 490 +++++++++++++++++++- .../test/resources/webapp/scheduler-response.json | 487 +++++++++++++++++++- .../test/resources/webapp/scheduler-response.xml | 490 +++++++++++++++++++- 7 files changed, 2443 insertions(+), 8 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySched.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySched.java index 1f73870..2be9b54 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySched.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySched.java @@ -120,7 +120,7 @@ public class TestRMWebServicesCapacitySched extends JerseyTestBase { // Define top-level queues config.setQueues(CapacitySchedulerConfiguration.ROOT, - new String[] {"a", "b"}); + new String[] {"a", "b", "c"}); final String a = CapacitySchedulerConfiguration.ROOT + ".a"; config.setCapacity(a, 10.5f); diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesSchedulerActivities.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesSchedulerActivities.java index f864794..3fc3c26 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesSchedulerActivities.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesSchedulerActivities.java @@ -156,7 +156,7 @@ public class TestRMWebServicesSchedulerActivities verifyStateOfAllocations(allocation, FN_ACT_FINAL_ALLOCATION_STATE, "ALLOCATED"); verifyQueueOrder(allocation, - "root-root.a-root.b-root.b.b2-root.b.b3-root.b.b1"); + "root-root.a-root.c-root.b-root.b.b2-root.b.b3-root.b.b1"); } finally { rm.stop(); } @@ -380,7 +380,7 @@ public class TestRMWebServicesSchedulerActivities JSONObject allocations = getFirstSubNodeFromJson(json, FN_SCHEDULER_ACT_ROOT, FN_ACT_ALLOCATIONS); verifyQueueOrder(allocations, - "root-root.a-root.b-root.b.b3-root.b.b1"); + "root-root.c-root.a-root.b-root.b.b3-root.b.b1"); verifyStateOfAllocations(allocations, FN_ACT_FINAL_ALLOCATION_STATE, "RESERVED"); diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-NodeLabelDefaultAPI.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-NodeLabelDefaultAPI.xml index 48b6893..d49491f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-NodeLabelDefaultAPI.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-NodeLabelDefaultAPI.xml @@ -10,6 +10,495 @@ <maxParallelApps>2147483647</maxParallelApps> <isAbsoluteResource>false</isAbsoluteResource> <queues> + <queue xsi:type="capacitySchedulerLeafQueueInfo"> + <queuePath>root.c</queuePath> + <capacity>0.0</capacity> + <usedCapacity>0.0</usedCapacity> + <maxCapacity>100.0</maxCapacity> + <absoluteCapacity>0.0</absoluteCapacity> + <absoluteMaxCapacity>0.0</absoluteMaxCapacity> + <absoluteUsedCapacity>0.0</absoluteUsedCapacity> + <weight>-1.0</weight> + <normalizedWeight>0.0</normalizedWeight> + <numApplications>0</numApplications> + <maxParallelApps>2147483647</maxParallelApps> + <queueName>c</queueName> + <isAbsoluteResource>true</isAbsoluteResource> + <state>RUNNING</state> + <resourcesUsed> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </resourcesUsed> + <hideReservationQueues>false</hideReservationQueues> + <nodeLabels>*</nodeLabels> + <allocatedContainers>0</allocatedContainers> + <reservedContainers>0</reservedContainers> + <pendingContainers>0</pendingContainers> + <capacities> + <queueCapacitiesByPartition> + <partitionName/> + <capacity>0.0</capacity> + <usedCapacity>0.0</usedCapacity> + <maxCapacity>100.0</maxCapacity> + <absoluteCapacity>0.0</absoluteCapacity> + <absoluteUsedCapacity>0.0</absoluteUsedCapacity> + <absoluteMaxCapacity>0.0</absoluteMaxCapacity> + <maxAMLimitPercentage>10.0</maxAMLimitPercentage> + <weight>-1.0</weight> + <normalizedWeight>0.0</normalizedWeight> + <configuredMinResource> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </configuredMinResource> + <configuredMaxResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>8192</maximumAllocation> + <minimumAllocation>1024</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>4</maximumAllocation> + <minimumAllocation>1</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </configuredMaxResource> + <effectiveMinResource> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </effectiveMinResource> + <effectiveMaxResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </effectiveMaxResource> + </queueCapacitiesByPartition> + </capacities> + <resources> + <resourceUsagesByPartition> + <partitionName/> + <used> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </used> + <reserved> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </reserved> + <pending> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </pending> + <amUsed> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </amUsed> + <amLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </amLimit> + <userAmLimit> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </userAmLimit> + </resourceUsagesByPartition> + </resources> + <minEffectiveCapacity> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </minEffectiveCapacity> + <maxEffectiveCapacity> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </maxEffectiveCapacity> + <maximumAllocation> + <memory>8192</memory> + <vCores>4</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>8192</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>4</value> + </resourceInformation> + </resourceInformations> + </maximumAllocation> + <queueAcls> + <queueAcl> + <accessType>ADMINISTER_QUEUE</accessType> + <accessControlList> </accessControlList> + </queueAcl> + <queueAcl> + <accessType>APPLICATION_MAX_PRIORITY</accessType> + <accessControlList>*</accessControlList> + </queueAcl> + <queueAcl> + <accessType>SUBMIT_APP</accessType> + <accessControlList> </accessControlList> + </queueAcl> + </queueAcls> + <queuePriority>0</queuePriority> + <orderingPolicyInfo>fifo</orderingPolicyInfo> + <autoCreateChildQueueEnabled>false</autoCreateChildQueueEnabled> + <leafQueueTemplate/> + <mode>absolute</mode> + <queueType>leaf</queueType> + <creationMethod>static</creationMethod> + <autoCreationEligibility>off</autoCreationEligibility> + <defaultNodeLabelExpression>ROOT-INHERITED</defaultNodeLabelExpression> + <autoQueueTemplateProperties/> + <autoQueueParentTemplateProperties/> + <autoQueueLeafTemplateProperties/> + <numActiveApplications>0</numActiveApplications> + <numPendingApplications>0</numPendingApplications> + <numContainers>0</numContainers> + <maxApplications>0</maxApplications> + <maxApplicationsPerUser>0</maxApplicationsPerUser> + <userLimit>100.0</userLimit> + <users/> + <userLimitFactor>1.0</userLimitFactor> + <configuredMaxAMResourceLimit>0.1</configuredMaxAMResourceLimit> + <AMResourceLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </AMResourceLimit> + <usedAMResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </usedAMResource> + <userAMResourceLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </userAMResourceLimit> + <preemptionDisabled>true</preemptionDisabled> + <intraQueuePreemptionDisabled>true</intraQueuePreemptionDisabled> + <defaultPriority>0</defaultPriority> + <isAutoCreatedLeafQueue>false</isAutoCreatedLeafQueue> + <maxApplicationLifetime>-1</maxApplicationLifetime> + <defaultApplicationLifetime>-1</defaultApplicationLifetime> + </queue> <queue> <queuePath>root.a</queuePath> <capacity>10.5</capacity> @@ -4547,4 +5036,4 @@ <autoQueueParentTemplateProperties/> <autoQueueLeafTemplateProperties/> </schedulerInfo> -</scheduler> +</scheduler> \ No newline at end of file diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.json index 7960bf7..22f1744 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.json @@ -11,6 +11,491 @@ "isAbsoluteResource": false, "queues": {"queue": [ { + "type": "capacitySchedulerLeafQueueInfo", + "queuePath": "root.c", + "capacity": 0, + "usedCapacity": 0, + "maxCapacity": 100, + "absoluteCapacity": 0, + "absoluteMaxCapacity": 0, + "absoluteUsedCapacity": 0, + "weight": -1, + "normalizedWeight": 0, + "numApplications": 0, + "maxParallelApps": 2147483647, + "queueName": "c", + "isAbsoluteResource": true, + "state": "RUNNING", + "resourcesUsed": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "hideReservationQueues": false, + "nodeLabels": ["*"], + "allocatedContainers": 0, + "reservedContainers": 0, + "pendingContainers": 0, + "capacities": {"queueCapacitiesByPartition": [{ + "partitionName": "", + "capacity": 0, + "usedCapacity": 0, + "maxCapacity": 100, + "absoluteCapacity": 0, + "absoluteUsedCapacity": 0, + "absoluteMaxCapacity": 0, + "maxAMLimitPercentage": 10, + "weight": -1, + "normalizedWeight": 0, + "configuredMinResource": { + "memory": 1024, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "configuredMaxResource": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 8192, + "minimumAllocation": 1024, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 4, + "minimumAllocation": 1, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "effectiveMinResource": { + "memory": 1024, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "effectiveMaxResource": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + } + }]}, + "resources": {"resourceUsagesByPartition": [{ + "partitionName": "", + "used": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "reserved": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "pending": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "amUsed": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "amLimit": { + "memory": 1024, + "vCores": 1, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 1 + } + ]} + }, + "userAmLimit": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + } + }]}, + "minEffectiveCapacity": { + "memory": 1024, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "maxEffectiveCapacity": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "maximumAllocation": { + "memory": 8192, + "vCores": 4, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 8192 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 4 + } + ]} + }, + "queueAcls": {"queueAcl": [ + { + "accessType": "ADMINISTER_QUEUE", + "accessControlList": " " + }, + { + "accessType": "APPLICATION_MAX_PRIORITY", + "accessControlList": "*" + }, + { + "accessType": "SUBMIT_APP", + "accessControlList": " " + } + ]}, + "queuePriority": 0, + "orderingPolicyInfo": "fifo", + "autoCreateChildQueueEnabled": false, + "leafQueueTemplate": {}, + "mode": "absolute", + "queueType": "leaf", + "creationMethod": "static", + "autoCreationEligibility": "off", + "autoQueueTemplateProperties": {}, + "autoQueueParentTemplateProperties": {}, + "autoQueueLeafTemplateProperties": {}, + "numActiveApplications": 0, + "numPendingApplications": 0, + "numContainers": 0, + "maxApplications": 0, + "maxApplicationsPerUser": 0, + "userLimit": 100, + "users": {}, + "userLimitFactor": 1, + "configuredMaxAMResourceLimit": 0.1, + "AMResourceLimit": { + "memory": 1024, + "vCores": 1, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 1 + } + ]} + }, + "usedAMResource": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "userAMResourceLimit": { + "memory": 1024, + "vCores": 1, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 1 + } + ]} + }, + "preemptionDisabled": true, + "intraQueuePreemptionDisabled": true, + "defaultPriority": 0, + "isAutoCreatedLeafQueue": false, + "maxApplicationLifetime": -1, + "defaultApplicationLifetime": -1 + }, + { "queuePath": "root.a", "capacity": 10.5, "usedCapacity": 0, @@ -4954,4 +5439,4 @@ "autoQueueTemplateProperties": {}, "autoQueueParentTemplateProperties": {}, "autoQueueLeafTemplateProperties": {} -}}} +}}} \ No newline at end of file diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.xml index 97d937b..1376458 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.xml @@ -10,6 +10,494 @@ <maxParallelApps>2147483647</maxParallelApps> <isAbsoluteResource>false</isAbsoluteResource> <queues> + <queue xsi:type="capacitySchedulerLeafQueueInfo"> + <queuePath>root.c</queuePath> + <capacity>0.0</capacity> + <usedCapacity>0.0</usedCapacity> + <maxCapacity>100.0</maxCapacity> + <absoluteCapacity>0.0</absoluteCapacity> + <absoluteMaxCapacity>0.0</absoluteMaxCapacity> + <absoluteUsedCapacity>0.0</absoluteUsedCapacity> + <weight>-1.0</weight> + <normalizedWeight>0.0</normalizedWeight> + <numApplications>0</numApplications> + <maxParallelApps>2147483647</maxParallelApps> + <queueName>c</queueName> + <isAbsoluteResource>true</isAbsoluteResource> + <state>RUNNING</state> + <resourcesUsed> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </resourcesUsed> + <hideReservationQueues>false</hideReservationQueues> + <nodeLabels>*</nodeLabels> + <allocatedContainers>0</allocatedContainers> + <reservedContainers>0</reservedContainers> + <pendingContainers>0</pendingContainers> + <capacities> + <queueCapacitiesByPartition> + <partitionName/> + <capacity>0.0</capacity> + <usedCapacity>0.0</usedCapacity> + <maxCapacity>100.0</maxCapacity> + <absoluteCapacity>0.0</absoluteCapacity> + <absoluteUsedCapacity>0.0</absoluteUsedCapacity> + <absoluteMaxCapacity>0.0</absoluteMaxCapacity> + <maxAMLimitPercentage>10.0</maxAMLimitPercentage> + <weight>-1.0</weight> + <normalizedWeight>0.0</normalizedWeight> + <configuredMinResource> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </configuredMinResource> + <configuredMaxResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>8192</maximumAllocation> + <minimumAllocation>1024</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>4</maximumAllocation> + <minimumAllocation>1</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </configuredMaxResource> + <effectiveMinResource> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </effectiveMinResource> + <effectiveMaxResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </effectiveMaxResource> + </queueCapacitiesByPartition> + </capacities> + <resources> + <resourceUsagesByPartition> + <partitionName/> + <used> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </used> + <reserved> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </reserved> + <pending> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </pending> + <amUsed> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </amUsed> + <amLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </amLimit> + <userAmLimit> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </userAmLimit> + </resourceUsagesByPartition> + </resources> + <minEffectiveCapacity> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </minEffectiveCapacity> + <maxEffectiveCapacity> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </maxEffectiveCapacity> + <maximumAllocation> + <memory>8192</memory> + <vCores>4</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>8192</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>4</value> + </resourceInformation> + </resourceInformations> + </maximumAllocation> + <queueAcls> + <queueAcl> + <accessType>ADMINISTER_QUEUE</accessType> + <accessControlList> </accessControlList> + </queueAcl> + <queueAcl> + <accessType>APPLICATION_MAX_PRIORITY</accessType> + <accessControlList>*</accessControlList> + </queueAcl> + <queueAcl> + <accessType>SUBMIT_APP</accessType> + <accessControlList> </accessControlList> + </queueAcl> + </queueAcls> + <queuePriority>0</queuePriority> + <orderingPolicyInfo>fifo</orderingPolicyInfo> + <autoCreateChildQueueEnabled>false</autoCreateChildQueueEnabled> + <leafQueueTemplate/> + <mode>absolute</mode> + <queueType>leaf</queueType> + <creationMethod>static</creationMethod> + <autoCreationEligibility>off</autoCreationEligibility> + <autoQueueTemplateProperties/> + <autoQueueParentTemplateProperties/> + <autoQueueLeafTemplateProperties/> + <numActiveApplications>0</numActiveApplications> + <numPendingApplications>0</numPendingApplications> + <numContainers>0</numContainers> + <maxApplications>0</maxApplications> + <maxApplicationsPerUser>0</maxApplicationsPerUser> + <userLimit>100.0</userLimit> + <users/> + <userLimitFactor>1.0</userLimitFactor> + <configuredMaxAMResourceLimit>0.1</configuredMaxAMResourceLimit> + <AMResourceLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </AMResourceLimit> + <usedAMResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </usedAMResource> + <userAMResourceLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </userAMResourceLimit> + <preemptionDisabled>true</preemptionDisabled> + <intraQueuePreemptionDisabled>true</intraQueuePreemptionDisabled> + <defaultPriority>0</defaultPriority> + <isAutoCreatedLeafQueue>false</isAutoCreatedLeafQueue> + <maxApplicationLifetime>-1</maxApplicationLifetime> + <defaultApplicationLifetime>-1</defaultApplicationLifetime> + </queue> <queue> <queuePath>root.a</queuePath> <capacity>10.5</capacity> @@ -4993,4 +5481,4 @@ <autoQueueParentTemplateProperties/> <autoQueueLeafTemplateProperties/> </schedulerInfo> -</scheduler> +</scheduler> \ No newline at end of file diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.json index 26289cc..47acd70 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.json @@ -11,6 +11,491 @@ "isAbsoluteResource": false, "queues": {"queue": [ { + "type": "capacitySchedulerLeafQueueInfo", + "queuePath": "root.c", + "capacity": 0, + "usedCapacity": 0, + "maxCapacity": 100, + "absoluteCapacity": 0, + "absoluteMaxCapacity": 0, + "absoluteUsedCapacity": 0, + "weight": -1, + "normalizedWeight": 0, + "numApplications": 0, + "maxParallelApps": 2147483647, + "queueName": "c", + "isAbsoluteResource": true, + "state": "RUNNING", + "resourcesUsed": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "hideReservationQueues": false, + "nodeLabels": ["*"], + "allocatedContainers": 0, + "reservedContainers": 0, + "pendingContainers": 0, + "capacities": {"queueCapacitiesByPartition": [{ + "partitionName": "", + "capacity": 0, + "usedCapacity": 0, + "maxCapacity": 100, + "absoluteCapacity": 0, + "absoluteUsedCapacity": 0, + "absoluteMaxCapacity": 0, + "maxAMLimitPercentage": 10, + "weight": -1, + "normalizedWeight": 0, + "configuredMinResource": { + "memory": 1024, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "configuredMaxResource": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 8192, + "minimumAllocation": 1024, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 4, + "minimumAllocation": 1, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "effectiveMinResource": { + "memory": 1024, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "effectiveMaxResource": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + } + }]}, + "resources": {"resourceUsagesByPartition": [{ + "partitionName": "", + "used": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "reserved": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "pending": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "amUsed": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "amLimit": { + "memory": 1024, + "vCores": 1, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 1 + } + ]} + }, + "userAmLimit": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + } + }]}, + "minEffectiveCapacity": { + "memory": 1024, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "maxEffectiveCapacity": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "maximumAllocation": { + "memory": 8192, + "vCores": 4, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 8192 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 4 + } + ]} + }, + "queueAcls": {"queueAcl": [ + { + "accessType": "ADMINISTER_QUEUE", + "accessControlList": " " + }, + { + "accessType": "APPLICATION_MAX_PRIORITY", + "accessControlList": "*" + }, + { + "accessType": "SUBMIT_APP", + "accessControlList": " " + } + ]}, + "queuePriority": 0, + "orderingPolicyInfo": "fifo", + "autoCreateChildQueueEnabled": false, + "leafQueueTemplate": {}, + "mode": "absolute", + "queueType": "leaf", + "creationMethod": "static", + "autoCreationEligibility": "off", + "autoQueueTemplateProperties": {}, + "autoQueueParentTemplateProperties": {}, + "autoQueueLeafTemplateProperties": {}, + "numActiveApplications": 0, + "numPendingApplications": 0, + "numContainers": 0, + "maxApplications": 0, + "maxApplicationsPerUser": 0, + "userLimit": 100, + "users": {}, + "userLimitFactor": 1, + "configuredMaxAMResourceLimit": 0.1, + "AMResourceLimit": { + "memory": 1024, + "vCores": 1, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 1 + } + ]} + }, + "usedAMResource": { + "memory": 0, + "vCores": 0, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 0 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 0 + } + ]} + }, + "userAMResourceLimit": { + "memory": 1024, + "vCores": 1, + "resourceInformations": {"resourceInformation": [ + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "memory-mb", + "resourceType": "COUNTABLE", + "units": "Mi", + "value": 1024 + }, + { + "attributes": {}, + "maximumAllocation": 9223372036854775807, + "minimumAllocation": 0, + "name": "vcores", + "resourceType": "COUNTABLE", + "units": "", + "value": 1 + } + ]} + }, + "preemptionDisabled": true, + "intraQueuePreemptionDisabled": true, + "defaultPriority": 0, + "isAutoCreatedLeafQueue": false, + "maxApplicationLifetime": -1, + "defaultApplicationLifetime": -1 + }, + { "queuePath": "root.a", "capacity": 10.5, "usedCapacity": 0, @@ -4501,4 +4986,4 @@ "autoQueueTemplateProperties": {}, "autoQueueParentTemplateProperties": {}, "autoQueueLeafTemplateProperties": {} -}}} +}}} \ No newline at end of file diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.xml index d196ec8..c800195 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.xml @@ -10,6 +10,494 @@ <maxParallelApps>2147483647</maxParallelApps> <isAbsoluteResource>false</isAbsoluteResource> <queues> + <queue xsi:type="capacitySchedulerLeafQueueInfo"> + <queuePath>root.c</queuePath> + <capacity>0.0</capacity> + <usedCapacity>0.0</usedCapacity> + <maxCapacity>100.0</maxCapacity> + <absoluteCapacity>0.0</absoluteCapacity> + <absoluteMaxCapacity>0.0</absoluteMaxCapacity> + <absoluteUsedCapacity>0.0</absoluteUsedCapacity> + <weight>-1.0</weight> + <normalizedWeight>0.0</normalizedWeight> + <numApplications>0</numApplications> + <maxParallelApps>2147483647</maxParallelApps> + <queueName>c</queueName> + <isAbsoluteResource>true</isAbsoluteResource> + <state>RUNNING</state> + <resourcesUsed> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </resourcesUsed> + <hideReservationQueues>false</hideReservationQueues> + <nodeLabels>*</nodeLabels> + <allocatedContainers>0</allocatedContainers> + <reservedContainers>0</reservedContainers> + <pendingContainers>0</pendingContainers> + <capacities> + <queueCapacitiesByPartition> + <partitionName/> + <capacity>0.0</capacity> + <usedCapacity>0.0</usedCapacity> + <maxCapacity>100.0</maxCapacity> + <absoluteCapacity>0.0</absoluteCapacity> + <absoluteUsedCapacity>0.0</absoluteUsedCapacity> + <absoluteMaxCapacity>0.0</absoluteMaxCapacity> + <maxAMLimitPercentage>10.0</maxAMLimitPercentage> + <weight>-1.0</weight> + <normalizedWeight>0.0</normalizedWeight> + <configuredMinResource> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </configuredMinResource> + <configuredMaxResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>8192</maximumAllocation> + <minimumAllocation>1024</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>4</maximumAllocation> + <minimumAllocation>1</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </configuredMaxResource> + <effectiveMinResource> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </effectiveMinResource> + <effectiveMaxResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </effectiveMaxResource> + </queueCapacitiesByPartition> + </capacities> + <resources> + <resourceUsagesByPartition> + <partitionName/> + <used> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </used> + <reserved> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </reserved> + <pending> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </pending> + <amUsed> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </amUsed> + <amLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </amLimit> + <userAmLimit> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </userAmLimit> + </resourceUsagesByPartition> + </resources> + <minEffectiveCapacity> + <memory>1024</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </minEffectiveCapacity> + <maxEffectiveCapacity> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </maxEffectiveCapacity> + <maximumAllocation> + <memory>8192</memory> + <vCores>4</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>8192</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>4</value> + </resourceInformation> + </resourceInformations> + </maximumAllocation> + <queueAcls> + <queueAcl> + <accessType>ADMINISTER_QUEUE</accessType> + <accessControlList> </accessControlList> + </queueAcl> + <queueAcl> + <accessType>APPLICATION_MAX_PRIORITY</accessType> + <accessControlList>*</accessControlList> + </queueAcl> + <queueAcl> + <accessType>SUBMIT_APP</accessType> + <accessControlList> </accessControlList> + </queueAcl> + </queueAcls> + <queuePriority>0</queuePriority> + <orderingPolicyInfo>fifo</orderingPolicyInfo> + <autoCreateChildQueueEnabled>false</autoCreateChildQueueEnabled> + <leafQueueTemplate/> + <mode>absolute</mode> + <queueType>leaf</queueType> + <creationMethod>static</creationMethod> + <autoCreationEligibility>off</autoCreationEligibility> + <autoQueueTemplateProperties/> + <autoQueueParentTemplateProperties/> + <autoQueueLeafTemplateProperties/> + <numActiveApplications>0</numActiveApplications> + <numPendingApplications>0</numPendingApplications> + <numContainers>0</numContainers> + <maxApplications>0</maxApplications> + <maxApplicationsPerUser>0</maxApplicationsPerUser> + <userLimit>100.0</userLimit> + <users/> + <userLimitFactor>1.0</userLimitFactor> + <configuredMaxAMResourceLimit>0.1</configuredMaxAMResourceLimit> + <AMResourceLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </AMResourceLimit> + <usedAMResource> + <memory>0</memory> + <vCores>0</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>0</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>0</value> + </resourceInformation> + </resourceInformations> + </usedAMResource> + <userAMResourceLimit> + <memory>1024</memory> + <vCores>1</vCores> + <resourceInformations> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>memory-mb</name> + <resourceType>COUNTABLE</resourceType> + <units>Mi</units> + <value>1024</value> + </resourceInformation> + <resourceInformation> + <attributes/> + <maximumAllocation>9223372036854775807</maximumAllocation> + <minimumAllocation>0</minimumAllocation> + <name>vcores</name> + <resourceType>COUNTABLE</resourceType> + <units/> + <value>1</value> + </resourceInformation> + </resourceInformations> + </userAMResourceLimit> + <preemptionDisabled>true</preemptionDisabled> + <intraQueuePreemptionDisabled>true</intraQueuePreemptionDisabled> + <defaultPriority>0</defaultPriority> + <isAutoCreatedLeafQueue>false</isAutoCreatedLeafQueue> + <maxApplicationLifetime>-1</maxApplicationLifetime> + <defaultApplicationLifetime>-1</defaultApplicationLifetime> + </queue> <queue> <queuePath>root.a</queuePath> <capacity>10.5</capacity> @@ -4536,4 +5024,4 @@ <autoQueueParentTemplateProperties/> <autoQueueLeafTemplateProperties/> </schedulerInfo> -</scheduler> +</scheduler> \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org