diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 672061ea09ad9..8cc03dff69d5f 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -55,7 +55,7 @@ pipeline { environment { YETUS='yetus' // Branch or tag name. Yetus release tags are 'rel/X.Y.Z' - YETUS_VERSION='rel/0.14.0' + YETUS_VERSION='a7d29a6a72750a0c5c39512f33945e773e69303e' } parameters { @@ -71,7 +71,7 @@ pipeline { checkout([ $class: 'GitSCM', branches: [[name: "${env.YETUS_VERSION}"]], - userRemoteConfigs: [[ url: 'https://github.com/apache/yetus.git']]] + userRemoteConfigs: [[ url: 'https://github.com/ayushtkn/yetus.git']]] ) } } diff --git a/hadoop-client-modules/hadoop-client-minicluster/pom.xml b/hadoop-client-modules/hadoop-client-minicluster/pom.xml index fe58ccbf60e2a..4c0dca5032ad1 100644 --- a/hadoop-client-modules/hadoop-client-minicluster/pom.xml +++ b/hadoop-client-modules/hadoop-client-minicluster/pom.xml @@ -725,6 +725,13 @@ **/*.java + + + *:* + + **/*.html + + *:* diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml index f7aa379dac087..06c74f71315ba 100644 --- a/hadoop-project/pom.xml +++ b/hadoop-project/pom.xml @@ -67,6 +67,11 @@ 2.46 + + 2.7.14 + 1.1.6 + 1.1.4 + 2.3.9 @@ -2146,6 +2151,21 @@ jersey-media-json-jettison ${jersey2.version} + + org.eclipse.persistence + org.eclipse.persistence.moxy + ${eclipse-persistence.version} + + + jakarta.json + jakarta.json-api + ${jsonapi.version} + + + org.glassfish + javax.json + ${json.version} + org.glassfish.jaxb jaxb-runtime diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml index b02097814aad6..98f33dd0501e1 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml @@ -262,8 +262,16 @@ test - org.glassfish.jersey.media - jersey-media-json-jettison + org.eclipse.persistence + org.eclipse.persistence.moxy + + + jakarta.json + jakarta.json-api + + + org.glassfish + javax.json org.mockito diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreHeartbeat.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreHeartbeat.java index d43b2091c70dd..ffd3889d315f6 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreHeartbeat.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreHeartbeat.java @@ -20,19 +20,23 @@ import java.io.StringWriter; +import javax.ws.rs.core.MediaType; +import javax.xml.bind.JAXBContext; +import javax.xml.bind.Marshaller; + import org.apache.hadoop.yarn.server.federation.store.FederationStateStore; import org.apache.hadoop.yarn.server.federation.store.records.SubClusterHeartbeatRequest; import org.apache.hadoop.yarn.server.federation.store.records.SubClusterId; import org.apache.hadoop.yarn.server.federation.store.records.SubClusterState; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.JAXBContextResolver; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo; + +import org.eclipse.persistence.jaxb.MarshallerProperties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonMarshaller; - /** * Periodic heart beat from a ResourceManager participating in * federation to indicate liveliness. The heart beat publishes the current @@ -48,12 +52,18 @@ public class FederationStateStoreHeartbeat implements Runnable { private final FederationStateStore stateStoreService; private final ResourceScheduler rs; private String capability; + private JAXBContextResolver resolver; - public FederationStateStoreHeartbeat(SubClusterId subClusterId, - FederationStateStore stateStoreClient, ResourceScheduler scheduler) { + public FederationStateStoreHeartbeat( + SubClusterId subClusterId, + FederationStateStore stateStoreClient, + ResourceScheduler scheduler, + JAXBContextResolver resolver + ) { this.stateStoreService = stateStoreClient; this.subClusterId = subClusterId; this.rs = scheduler; + this.resolver = resolver; LOG.info("Initialized Federation membership for cluster with timestamp: {}. ", ResourceManager.getClusterTimeStamp()); } @@ -66,12 +76,11 @@ private void updateClusterState() { try { // get the current state ClusterMetricsInfo clusterMetricsInfo = new ClusterMetricsInfo(rs); - - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(ClusterMetricsInfo.class); - JettisonMarshaller jsonMarshaller = jettisonJaxbContext.createJsonMarshaller(); + JAXBContext context = resolver.getContext(ClusterMetricsInfo.class); + Marshaller marshaller = context.createMarshaller(); + marshaller.setProperty(MarshallerProperties.MEDIA_TYPE, MediaType.APPLICATION_JSON); StringWriter stringWriter = new StringWriter(); - jsonMarshaller.marshallToJSON(clusterMetricsInfo, stringWriter); - + marshaller.marshal(clusterMetricsInfo, stringWriter); capability = stringWriter.toString(); } catch (Exception e) { LOG.warn("Exception while trying to generate cluster state," diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreService.java index 6384736d62e11..0c50618adb399 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreService.java @@ -89,6 +89,7 @@ import org.apache.hadoop.yarn.server.records.Version; import org.apache.hadoop.yarn.server.resourcemanager.RMContext; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.JAXBContextResolver; import org.apache.hadoop.yarn.util.Clock; import org.apache.hadoop.yarn.util.MonotonicClock; import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMApp; @@ -121,6 +122,7 @@ public class FederationStateStoreService extends AbstractService private String cleanUpThreadNamePrefix = "FederationStateStoreService-Clean-Thread"; private int cleanUpRetryCountNum; private long cleanUpRetrySleepTime; + private JAXBContextResolver resolver; public FederationStateStoreService(RMContext rmContext) { super(FederationStateStoreService.class.getName()); @@ -182,6 +184,8 @@ protected void serviceInit(Configuration conf) throws Exception { this.metrics = FederationStateStoreServiceMetrics.getMetrics(); LOG.info("Initialized federation statestore service metrics."); + this.resolver = new JAXBContextResolver(conf); + super.serviceInit(conf); } @@ -252,7 +256,7 @@ private void registerAndInitializeHeartbeat() { "Failed to register Federation membership with the StateStore", e); } stateStoreHeartbeat = new FederationStateStoreHeartbeat(subClusterId, - stateStoreClient, rmContext.getScheduler()); + stateStoreClient, rmContext.getScheduler(), resolver); scheduledExecutorService = HadoopExecutors.newSingleThreadScheduledExecutor(); scheduledExecutorService.scheduleWithFixedDelay(stateStoreHeartbeat, 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/JAXBContextResolver.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/JAXBContextResolver.java index 37ea2ee04e32f..ecc658b86a334 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/JAXBContextResolver.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/JAXBContextResolver.java @@ -18,15 +18,15 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; -import org.glassfish.jersey.jettison.JettisonJaxbContext; +import org.eclipse.persistence.jaxb.JAXBContextFactory; +import org.eclipse.persistence.jaxb.MarshallerProperties; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.util.Arrays; -import java.util.ArrayList; import java.util.Collections; import java.util.Map; import java.util.HashMap; +import java.util.Set; import javax.inject.Inject; import javax.inject.Singleton; @@ -35,54 +35,13 @@ import javax.xml.bind.JAXBContext; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.yarn.conf.YarnConfiguration; -import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.UserInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerQueueInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.FifoSchedulerInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.UserMetricsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerQueueInfoList; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.UsersInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.StatisticsItemInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerHealthInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.FairSchedulerQueueInfoList; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInformationsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.QueueAclsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.QueueAclInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.BulkActivitiesInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NewApplication; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ContainerLaunchContextInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LocalResourceInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo; -import org.apache.hadoop.yarn.webapp.RemoteExceptionData; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.ClassSerialisationConfig; @Singleton @Provider public class JAXBContextResolver implements ContextResolver { - private static final Logger LOG = LoggerFactory.getLogger(JAXBContextResolver.class.getName()); - - private final Map typesContextMap; + private final Map typesContextMap = new HashMap<>(); public JAXBContextResolver() throws Exception { this(new Configuration()); @@ -90,83 +49,29 @@ public JAXBContextResolver() throws Exception { @Inject public JAXBContextResolver(@javax.inject.Named("conf") Configuration conf) throws Exception { - - JAXBContext context; - JAXBContext unWrappedRootContext; - - // you have to specify all the dao classes here - final Class[] cTypes = - { AppInfo.class, AppAttemptInfo.class, AppAttemptsInfo.class, - ClusterInfo.class, CapacitySchedulerQueueInfo.class, - FifoSchedulerInfo.class, SchedulerTypeInfo.class, NodeInfo.class, - UserMetricsInfo.class, CapacitySchedulerInfo.class, - ClusterMetricsInfo.class, SchedulerInfo.class, AppsInfo.class, - NodesInfo.class, RemoteExceptionData.class, - CapacitySchedulerQueueInfoList.class, ResourceInfo.class, - UsersInfo.class, UserInfo.class, ApplicationStatisticsInfo.class, - StatisticsItemInfo.class, CapacitySchedulerHealthInfo.class, - FairSchedulerQueueInfoList.class, AppTimeoutsInfo.class, - AppTimeoutInfo.class, ResourceInformationsInfo.class, - ActivitiesInfo.class, AppActivitiesInfo.class, - QueueAclsInfo.class, QueueAclInfo.class, - BulkActivitiesInfo.class}; - - // these dao classes need root unwrapping - final Class[] rootUnwrappedTypes = - { NewApplication.class, ApplicationSubmissionContextInfo.class, - ContainerLaunchContextInfo.class, LocalResourceInfo.class, - DelegationToken.class, AppQueue.class, AppPriority.class, - ResourceOptionInfo.class }; - - ArrayList finalcTypesList = new ArrayList<>(); - ArrayList finalRootUnwrappedTypesList = new ArrayList<>(); - - Collections.addAll(finalcTypesList, cTypes); - Collections.addAll(finalRootUnwrappedTypesList, rootUnwrappedTypes); - - // Add Custom DAO Classes - Class[] daoClasses = null; - Class[] unwrappedDaoClasses = null; - boolean loadCustom = true; - try { - daoClasses = conf - .getClasses(YarnConfiguration.YARN_HTTP_WEBAPP_CUSTOM_DAO_CLASSES); - unwrappedDaoClasses = conf.getClasses( - YarnConfiguration.YARN_HTTP_WEBAPP_CUSTOM_UNWRAPPED_DAO_CLASSES); - } catch (Exception e) { - LOG.warn("Failed to load custom dao class: ", e); - loadCustom = false; - } - - if (loadCustom) { - if (daoClasses != null) { - Collections.addAll(finalcTypesList, daoClasses); - LOG.debug("Added custom dao classes: {}.", Arrays.toString(daoClasses)); - } - if (unwrappedDaoClasses != null) { - Collections.addAll(finalRootUnwrappedTypesList, unwrappedDaoClasses); - LOG.debug("Added custom Unwrapped dao classes: {}", Arrays.toString(unwrappedDaoClasses)); - } - } - - final Class[] finalcTypes = finalcTypesList - .toArray(new Class[finalcTypesList.size()]); - final Class[] finalRootUnwrappedTypes = finalRootUnwrappedTypesList - .toArray(new Class[finalRootUnwrappedTypesList.size()]); - - this.typesContextMap = new HashMap<>(); - context = new JettisonJaxbContext(finalcTypes); - unWrappedRootContext = new JettisonJaxbContext(finalRootUnwrappedTypes); - for (Class type : finalcTypes) { - typesContextMap.put(type, context); - } - for (Class type : finalRootUnwrappedTypes) { - typesContextMap.put(type, unWrappedRootContext); - } + ClassSerialisationConfig classSerialisationConfig = new ClassSerialisationConfig(conf); + Set> wrappedClasses = classSerialisationConfig.getWrappedClasses(); + Set> unWrappedClasses = classSerialisationConfig.getUnWrappedClasses(); + + //WARNING: AFAIK these properties not respected by MOXyJsonProvider + //For details check MOXyJsonProvider#readFrom method + JAXBContext wrappedContext = JAXBContextFactory.createContext( + wrappedClasses.toArray(new Class[0]), + Collections.singletonMap(MarshallerProperties.JSON_INCLUDE_ROOT, true) + ); + JAXBContext unWrappedContext = JAXBContextFactory.createContext( + unWrappedClasses.toArray(new Class[0]), + Collections.singletonMap(MarshallerProperties.JSON_INCLUDE_ROOT, false) + ); + + wrappedClasses.forEach(type -> typesContextMap.put(type, wrappedContext)); + unWrappedClasses.forEach(type -> typesContextMap.put(type, unWrappedContext)); } @Override public JAXBContext getContext(Class objectType) { - return typesContextMap.get(objectType); + JAXBContext jaxbContext = typesContextMap.get(objectType); + LOG.trace("Context for {} is {}", objectType, jaxbContext); + return jaxbContext; } } 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/RMWebApp.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebApp.java index b8b24a8c6422b..4b795bb580b29 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebApp.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMWebApp.java @@ -27,6 +27,7 @@ import org.slf4j.LoggerFactory; import org.apache.hadoop.ha.HAServiceProtocol.HAServiceState; import org.apache.hadoop.yarn.conf.YarnConfiguration; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.RMHAUtils; import org.apache.hadoop.yarn.server.resourcemanager.RMContext; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; @@ -36,7 +37,6 @@ import javax.servlet.Filter; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; /** @@ -60,7 +60,8 @@ public ResourceConfig resourceConfig() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/NodeLabelsInfo.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/NodeLabelsInfo.java index c9809b6d2e3cd..e2e99ee4b15bd 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/NodeLabelsInfo.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/NodeLabelsInfo.java @@ -48,7 +48,7 @@ public NodeLabelsInfo(List nodeLabels) { this.nodeLabelsInfo.add(new NodeLabelInfo(label)); } } - + public NodeLabelsInfo(Set nodeLabelsName) { this.nodeLabelsInfo = new ArrayList<>(); for (String labelName : nodeLabelsName) { @@ -75,7 +75,7 @@ public Set getNodeLabels() { } return nodeLabels; } - + public List getNodeLabelsName() { ArrayList nodeLabelsName = new ArrayList<>(); for (NodeLabelInfo label : nodeLabelsInfo) { 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/jsonprovider/ClassSerialisationConfig.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/ClassSerialisationConfig.java new file mode 100644 index 0000000000000..a31501450c5a4 --- /dev/null +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/ClassSerialisationConfig.java @@ -0,0 +1,238 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider; + +import java.util.Arrays; +import java.util.HashSet; +import java.util.Set; +import javax.inject.Inject; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import org.apache.hadoop.conf.Configuration; +import org.apache.hadoop.util.Sets; +import org.apache.hadoop.yarn.conf.YarnConfiguration; +import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.UserInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.BulkActivitiesInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerHealthInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerQueueInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CapacitySchedulerQueueInfoList; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterUserInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ConfigVersionInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ContainerLaunchContextInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.FairSchedulerQueueInfoList; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.FifoSchedulerInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LocalResourceInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NewApplication; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NewReservation; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.QueueAclInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.QueueAclsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteResponseInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationListInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateResponseInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInformationsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerOverviewInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.StatisticsItemInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.UserMetricsInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.UsersInfo; +import org.apache.hadoop.yarn.webapp.RemoteExceptionData; +import org.apache.hadoop.yarn.webapp.dao.ConfInfo; +import org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo; + +/** + * Configuration holder for class serialization setup + * used by the ResourceManager web services layer. + * + *

This class manages two categories of data transfer objects (DTOs):

+ *
    + *
  • Wrapped classes + * – classes whose JSON representation includes a root wrapper element.
  • + *
  • Unwrapped classes + * – classes whose JSON representation omits a root wrapper element.
  • + *
+ * + *

The configuration is initialized with a default list of constant classes and may optionally + * include user-defined classes loaded from configuration properties:

+ *
    + *
  • {@code yarn.http.webapp.custom.dao.classes}
  • + *
  • {@code yarn.http.webapp.custom.unwrapped.dao.classes}
  • + *
+ * + *

This configuration is primarily used to control JSON serialization behavior in MOXy providers + * when serializing REST API objects.

+ * + *

Example:

+ *

If we have a class like:

+ * + *
{@code
+ * @XmlRootElement(name = "foo-class")
+ * class Foo {
+ *   String a;
+ *   String b;
+ * }
+ * }
+ * + *

and the class is present in the wrapped classes list, it will be marshalled as:

+ * + *
{@code
+ * {
+ *   "foo-class": {
+ *     "a": "...",
+ *     "b": "..."
+ *   }
+ * }
+ * }
+ * + *

or if the class is present in the unwrapped classes list, it will be marshalled as:

+ * + *
{@code
+ * {
+ *   "a": "...",
+ *   "b": "..."
+ * }
+ * }
+ */ +public class ClassSerialisationConfig { + private static final Logger LOG = LoggerFactory.getLogger(ClassSerialisationConfig.class); + + private static final Set> CONST_WRAPPED_CLASSES = + Sets.newHashSet(ActivitiesInfo.class, AppActivitiesInfo.class, AppAttemptInfo.class, + AppAttemptsInfo.class, AppInfo.class, ApplicationStatisticsInfo.class, AppsInfo.class, + AppTimeoutInfo.class, AppTimeoutsInfo.class, BulkActivitiesInfo.class, + CapacitySchedulerHealthInfo.class, CapacitySchedulerInfo.class, + CapacitySchedulerQueueInfo.class, CapacitySchedulerQueueInfoList.class, ClusterInfo.class, + ClusterMetricsInfo.class, ConfigVersionInfo.class, FairSchedulerQueueInfoList.class, + FifoSchedulerInfo.class, NewReservation.class, NodeInfo.class, NodesInfo.class, + QueueAclInfo.class, QueueAclsInfo.class, RemoteExceptionData.class, + ReservationDeleteRequestInfo.class, ReservationDeleteResponseInfo.class, + ReservationSubmissionRequestInfo.class, ReservationUpdateRequestInfo.class, + ReservationUpdateResponseInfo.class, ResourceInfo.class, ResourceInformationsInfo.class, + SchedulerInfo.class, SchedulerOverviewInfo.class, SchedulerTypeInfo.class, + StatisticsItemInfo.class, UserInfo.class, UserMetricsInfo.class, UsersInfo.class); + + private static final Set> CONST_UNWRAPPED_CLASSES = + Sets.newHashSet(ApplicationSubmissionContextInfo.class, AppPriority.class, AppQueue.class, + AppState.class, ClusterUserInfo.class, ConfInfo.class, ContainerLaunchContextInfo.class, + DelegationToken.class, LabelsToNodesInfo.class, LocalResourceInfo.class, + NewApplication.class, NodeLabelsInfo.class, NodeToLabelsEntryList.class, + NodeToLabelsInfo.class, ReservationListInfo.class, ResourceOptionInfo.class, + SchedConfUpdateInfo.class); + + private final Set> wrappedClasses; + private final Set> unWrappedClasses; + + /** + * Default constructor. + */ + public ClassSerialisationConfig() { + this(new Configuration()); + } + + /** + * Constructs a new {@code ClassSerialisationConfig} instance and initializes + * the sets of wrapped and unwrapped classes used for JSON serialization. + * + * @param conf the Hadoop {@link Configuration} instance (typically injected via + * dependency injection) used to load optional custom class definitions + */ + @Inject + public ClassSerialisationConfig(@javax.inject.Named("conf") Configuration conf) { + wrappedClasses = new HashSet<>(CONST_WRAPPED_CLASSES); + try { + wrappedClasses.addAll( + Arrays.asList(conf.getClasses(YarnConfiguration.YARN_HTTP_WEBAPP_CUSTOM_DAO_CLASSES))); + } catch (RuntimeException e) { + LOG.warn("Failed to load YARN_HTTP_WEBAPP_CUSTOM_DAO_CLASSES", e); + } + + unWrappedClasses = new HashSet<>(CONST_UNWRAPPED_CLASSES); + try { + unWrappedClasses.addAll(Arrays.asList( + conf.getClasses(YarnConfiguration.YARN_HTTP_WEBAPP_CUSTOM_UNWRAPPED_DAO_CLASSES))); + } catch (RuntimeException e) { + LOG.warn("Failed to load YARN_HTTP_WEBAPP_CUSTOM_DAO_CLASSES", e); + } + + LOG.trace("ClassSerialisationConfig was created, wrappedClasses: {} unWrappedClasses: {}", + wrappedClasses, unWrappedClasses); + + Set> duplicates = new HashSet<>(wrappedClasses); + duplicates.retainAll(unWrappedClasses); + if (!duplicates.isEmpty()) { + throw new Error(String.format("Duplicate classes found: %s", duplicates)); + } + } + + /** + * Returns the set of classes whose JSON representation should include a root element. + *

+ * These classes are used by MOXy JSON providers to determine which data transfer + * objects (DTOs) should be wrapped with a root element when serialized. + *

+ * + * @return an unmodifiable {@link Set} of wrapped classes + */ + public Set> getWrappedClasses() { + return wrappedClasses; + } + + /** + * Returns the set of classes whose JSON representation should omit the root element. + *

+ * These classes are used by MOXy JSON providers to determine which data transfer + * objects (DTOs) should be serialized without a root element in the JSON output. + *

+ * + * @return an unmodifiable {@link Set} of unwrapped classes + */ + public Set> getUnWrappedClasses() { + return unWrappedClasses; + } +} 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/jsonprovider/ExcludeRootJSONProvider.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/ExcludeRootJSONProvider.java new file mode 100644 index 0000000000000..d3ecf436e5c8b --- /dev/null +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/ExcludeRootJSONProvider.java @@ -0,0 +1,148 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider; + +import java.lang.annotation.Annotation; +import java.lang.reflect.Type; +import javax.inject.Inject; +import javax.ws.rs.Consumes; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.MultivaluedMap; +import javax.ws.rs.ext.Provider; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Marshaller; +import javax.xml.bind.Unmarshaller; + +import org.eclipse.persistence.jaxb.MarshallerProperties; +import org.eclipse.persistence.jaxb.rs.MOXyJsonProvider; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import org.apache.hadoop.conf.Configuration; + +/** + * A custom JSON provider that extends {@link org.eclipse.persistence.jaxb.rs.MOXyJsonProvider} + * to handle JSON marshalling and unmarshalling without including the root element + * for configured classes. + *

+ * This provider integrates with EclipseLink MOXy and the JAX-RS runtime (annotated with + * {@link javax.ws.rs.ext.Provider}), and it is configured to both produce and consume + * {@code application/json} content types. It uses a {@link ClassSerialisationConfig} + * to determine which classes should be serialized + * and deserialized without a root element in the resulting JSON. + *

+ * + *

+ * During marshalling and unmarshalling, this provider sets the MOXy-specific properties: + *

    + *
  • {@code MarshallerProperties.JSON_INCLUDE_ROOT = false}
  • + *
  • {@code MarshallerProperties.JSON_MARSHAL_EMPTY_COLLECTIONS = false}
  • + *
+ * ensuring that the JSON representation excludes the root element and does not include + * empty collections. This is useful when interoperating with APIs that expect flat + * JSON structures or when simplifying payloads for lightweight clients. + *

+ * + *

+ * This class also provides detailed trace-level logging to help developers verify + * which entity types are being handled by this provider and how JSON binding is applied. + *

+ * + * @see org.eclipse.persistence.jaxb.rs.MOXyJsonProvider + * @see org.eclipse.persistence.jaxb.MarshallerProperties + * @see ClassSerialisationConfig + * @see Configuration + */ +@Provider +@Produces(MediaType.APPLICATION_JSON) +@Consumes(MediaType.APPLICATION_JSON) +public class ExcludeRootJSONProvider extends MOXyJsonProvider { + + private final static Logger LOG = LoggerFactory.getLogger(ExcludeRootJSONProvider.class); + private final ClassSerialisationConfig classSerialisationConfig; + + /** + * Default constructor. + */ + public ExcludeRootJSONProvider() { + this(new Configuration()); + } + + /** + * Constructs a new {@code ExcludeRootJSONProvider} instance and initializes + * its {@link ClassSerialisationConfig} based on the provided application configuration. + *

+ * This constructor is designed for dependency injection. The {@code Configuration} + * object is injected (qualified with {@code @Named("conf")}) and used to + * create a {@link ClassSerialisationConfig} instance, which controls how + * classes are serialized to JSON (e.g., whether to include root elements). + *

+ * + * @param conf the application {@link Configuration} instance injected by the framework; + * used to initialize serialization settings + */ + @Inject + public ExcludeRootJSONProvider(@javax.inject.Named("conf") Configuration conf) { + classSerialisationConfig = new ClassSerialisationConfig(conf); + } + + /** + * {@inheritDoc} + */ + @Override + public boolean isReadable(Class type, Type genericType, Annotation[] annotations, + MediaType mediaType) { + boolean match = classSerialisationConfig.getUnWrappedClasses().contains(type); + LOG.trace("ExcludeRootJSONProvider compatibility with {} is {}", type, match); + return match; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, + MediaType mediaType) { + return isReadable(type, genericType, annotations, mediaType); + } + + /** + * {@inheritDoc} + */ + @Override + protected void preReadFrom(Class type, Type genericType, Annotation[] annotations, + MediaType mediaType, MultivaluedMap httpHeaders, Unmarshaller unmarshaller) + throws JAXBException { + LOG.trace("ExcludeRootJSONProvider preReadFrom with {}", type); + unmarshaller.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT, false); + } + + /** + * {@inheritDoc} + */ + @Override + protected void preWriteTo(Object object, Class type, Type genericType, + Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, + Marshaller marshaller) throws JAXBException { + LOG.trace("ExcludeRootJSONProvider preWriteTo with {}", type); + marshaller.setProperty(MarshallerProperties.JSON_MARSHAL_EMPTY_COLLECTIONS, false); + marshaller.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT, false); + } +} 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/jsonprovider/IncludeRootJSONProvider.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/IncludeRootJSONProvider.java new file mode 100644 index 0000000000000..ad43085bcdcb6 --- /dev/null +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/IncludeRootJSONProvider.java @@ -0,0 +1,146 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider; + +import java.lang.annotation.Annotation; +import java.lang.reflect.Type; +import javax.inject.Inject; +import javax.ws.rs.Consumes; +import javax.ws.rs.Produces; +import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.MultivaluedMap; +import javax.ws.rs.ext.Provider; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Marshaller; +import javax.xml.bind.Unmarshaller; + +import org.eclipse.persistence.jaxb.MarshallerProperties; +import org.eclipse.persistence.jaxb.rs.MOXyJsonProvider; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import org.apache.hadoop.conf.Configuration; + +/** + * A custom JSON provider that extends {@link org.eclipse.persistence.jaxb.rs.MOXyJsonProvider} + * to ensure that JSON marshalling and unmarshalling + * include the root element for configured classes. + *

+ * This provider integrates with EclipseLink MOXy and the JAX-RS runtime (annotated with + * {@link javax.ws.rs.ext.Provider}), and it is configured to both produce and consume + * {@code application/json} content types. It uses a {@link ClassSerialisationConfig} + * to determine which classes should include + * their root elements when serialized or deserialized. + *

+ * + *

+ * During marshalling and unmarshalling, this provider sets the MOXy-specific properties: + *

    + *
  • {@code MarshallerProperties.JSON_INCLUDE_ROOT = true}
  • + *
  • {@code MarshallerProperties.JSON_MARSHAL_EMPTY_COLLECTIONS = false}
  • + *
+ * ensuring consistent JSON structure that includes the root element and omits empty collections. + *

+ * + *

+ * This class also provides detailed trace logging to help debug compatibility and data binding + * behavior for registered entity types. + *

+ * + * @see org.eclipse.persistence.jaxb.rs.MOXyJsonProvider + * @see org.eclipse.persistence.jaxb.MarshallerProperties + * @see ClassSerialisationConfig + * @see Configuration + */ +@Provider +@Produces(MediaType.APPLICATION_JSON) +@Consumes(MediaType.APPLICATION_JSON) +public class IncludeRootJSONProvider extends MOXyJsonProvider { + + private final static Logger LOG = LoggerFactory.getLogger(IncludeRootJSONProvider.class); + private final ClassSerialisationConfig classSerialisationConfig; + + /** + * Default constructor. + */ + public IncludeRootJSONProvider() { + this(new Configuration()); + } + + /** + * Constructs a new {@code IncludeRootJSONProvider} instance and initializes + * its {@link ClassSerialisationConfig} based on the provided application configuration. + *

+ * This constructor is designed for dependency injection. The {@code Configuration} + * object is injected (qualified with {@code @Named("conf")}) and used to + * create a {@link ClassSerialisationConfig} instance, which controls how + * classes are serialized to JSON (e.g., whether to include root elements). + *

+ * + * @param conf the application {@link Configuration} instance injected by the framework; + * used to initialize serialization settings + */ + @Inject + public IncludeRootJSONProvider(@javax.inject.Named("conf") Configuration conf) { + classSerialisationConfig = new ClassSerialisationConfig(conf); + } + + /** + * {@inheritDoc} + */ + @Override + public boolean isReadable(Class type, Type genericType, Annotation[] annotations, + MediaType mediaType) { + boolean match = classSerialisationConfig.getWrappedClasses().contains(type); + LOG.trace("IncludeRootJSONProvider compatibility with {} is {}", type, match); + return match; + } + + /** + * {@inheritDoc} + */ + @Override + public boolean isWriteable(Class type, Type genericType, Annotation[] annotations, + MediaType mediaType) { + return isReadable(type, genericType, annotations, mediaType); + } + + /** + * {@inheritDoc} + */ + @Override + protected void preReadFrom(Class type, Type genericType, Annotation[] annotations, + MediaType mediaType, MultivaluedMap httpHeaders, Unmarshaller unmarshaller) + throws JAXBException { + LOG.trace("IncludeRootJSONProvider preReadFrom with {}", type); + unmarshaller.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT, true); + } + + /** + * {@inheritDoc} + */ + @Override + protected void preWriteTo(Object object, Class type, Type genericType, + Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, + Marshaller marshaller) throws JAXBException { + LOG.trace("IncludeRootJSONProvider preWriteTo with {}", type); + marshaller.setProperty(MarshallerProperties.JSON_MARSHAL_EMPTY_COLLECTIONS, false); + marshaller.setProperty(MarshallerProperties.JSON_INCLUDE_ROOT, true); + } +} 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/jsonprovider/JsonProviderFeature.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/JsonProviderFeature.java new file mode 100644 index 0000000000000..9f8cfa389484c --- /dev/null +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/jsonprovider/JsonProviderFeature.java @@ -0,0 +1,60 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider; + +import javax.ws.rs.core.Feature; +import javax.ws.rs.core.FeatureContext; + +/** + * A JAX-RS {@link Feature} that registers custom MOXy JSON providers + * for handling serialization and deserialization of JSON with or without + * root elements. + *

+ * This feature disables MOXy's automatic provider discovery to ensure + * that the custom providers {@link IncludeRootJSONProvider} and + * {@link ExcludeRootJSONProvider} are used explicitly with defined priorities. + *

+ * + *

Configuration details:

+ *
    + *
  • Registers {@link IncludeRootJSONProvider} with priority {@code 2001}.
  • + *
  • Registers {@link ExcludeRootJSONProvider} with priority {@code 2002}.
  • + *
+ * + * @see IncludeRootJSONProvider + * @see ExcludeRootJSONProvider + * @see org.glassfish.jersey.CommonProperties#MOXY_JSON_FEATURE_DISABLE + */ +public class JsonProviderFeature implements Feature { + + /** + * Configures the feature by registering the custom JSON providers. + * + * @param context the {@link FeatureContext} provided by the JAX-RS runtime + * @return {@code true} to indicate that the feature was successfully configured + */ + @Override + public boolean configure(FeatureContext context) { + // Priorities are used to maintain order between the JSONProviders. + // This way, we can improve the determinism of the app. + context.register(IncludeRootJSONProvider.class, 2001); + context.register(ExcludeRootJSONProvider.class, 2002); + return true; + } +} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java index d15a02c778a86..0c21ccbf38600 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestRMHA.java @@ -42,6 +42,7 @@ import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; +import org.glassfish.jersey.jettison.internal.entity.JettisonObjectProvider; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.conf.Configuration; @@ -76,7 +77,6 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Timeout; -import org.glassfish.jersey.jettison.internal.entity.JettisonObjectProvider; public class TestRMHA { private static final Logger LOG = LoggerFactory.getLogger(TestRMHA.class); @@ -162,9 +162,9 @@ private void checkActiveRMFunctionality() throws Exception { private void checkActiveRMWebServices() throws JSONException { // Validate web-service - Client webServiceClient = ClientBuilder. - newClient(). - register(new JettisonObjectProvider.App()); + Client webServiceClient = ClientBuilder + .newClient() + .register(new JettisonObjectProvider.App()); InetSocketAddress rmWebappAddr = NetUtils.getConnectAddress(rm.getWebapp().getListenerAddress()); String webappURL = diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/federation/TestFederationRMStateStoreService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/federation/TestFederationRMStateStoreService.java index 92c337b0773cd..c5633c6201678 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/federation/TestFederationRMStateStoreService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/federation/TestFederationRMStateStoreService.java @@ -17,13 +17,13 @@ package org.apache.hadoop.yarn.server.resourcemanager.federation; +import static org.apache.hadoop.yarn.server.resourcemanager.webapp.TestWebServiceUtil.fromJson; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import java.io.IOException; -import java.io.StringReader; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.List; @@ -83,9 +83,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; - import static org.mockito.Mockito.mock; /** @@ -103,15 +100,11 @@ public class TestFederationRMStateStoreService { private Configuration conf; private FederationStateStore stateStore; private long lastHearbeatTS = 0; - private JettisonJaxbContext jettisonJaxbContext; - private JettisonUnmarshaller jsonUnmarshaller; private MockRM mockRM; @BeforeEach public void setUp() throws IOException, YarnException, JAXBException { conf = new YarnConfiguration(); - this.jettisonJaxbContext = new JettisonJaxbContext(ClusterMetricsInfo.class); - this.jsonUnmarshaller = jettisonJaxbContext.createJsonUnmarshaller(); conf.setBoolean(YarnConfiguration.FEDERATION_ENABLED, true); conf.setInt(YarnConfiguration.FEDERATION_STATESTORE_HEARTBEAT_INITIAL_DELAY, 10); conf.set(YarnConfiguration.RM_CLUSTER_ID, subClusterId.getId()); @@ -124,8 +117,6 @@ public void setUp() throws IOException, YarnException, JAXBException { @AfterEach public void tearDown() throws Exception { - jettisonJaxbContext = null; - jsonUnmarshaller = null; mockRM.stop(); mockRM = null; } @@ -199,10 +190,8 @@ private void explicitFailover(MockRM rm) throws IOException { stateStore = rm.getFederationStateStoreService().getStateStoreClient(); } - private void checkClusterMetricsInfo(String capability, int numNodes) - throws JAXBException { - ClusterMetricsInfo clusterMetricsInfo = jsonUnmarshaller.unmarshalFromJSON( - new StringReader(capability), ClusterMetricsInfo.class); + private void checkClusterMetricsInfo(String capability, int numNodes) { + ClusterMetricsInfo clusterMetricsInfo = fromJson(capability, ClusterMetricsInfo.class); assertEquals(numNodes, clusterMetricsInfo.getTotalNodes()); } 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/TestRMWebServiceAppsNodelabel.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServiceAppsNodelabel.java index b5e41cb463510..1e84f08579233 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServiceAppsNodelabel.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServiceAppsNodelabel.java @@ -51,6 +51,7 @@ 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.QueuePath; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.codehaus.jettison.json.JSONArray; @@ -60,7 +61,6 @@ import org.apache.hadoop.thirdparty.com.google.common.collect.ImmutableMap; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; @@ -84,7 +84,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -198,7 +199,10 @@ public void testAppsRunning() throws JSONException, Exception { // Verify apps resource JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject jsonObject = apps.getJSONObject("app").getJSONObject("resourceInfo"); + JSONObject jsonObject = apps + .getJSONArray("app") + .getJSONObject(0) + .getJSONObject("resourceInfo"); JSONArray jsonArray = jsonObject.getJSONArray("resourceUsagesByPartition"); assertEquals(2, jsonArray.length(), "Partition expected is 2"); 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/TestRMWebServices.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServices.java index 3ea45d1d3cd5b..ebfc4e341c9fb 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServices.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServices.java @@ -97,6 +97,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterUserInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.server.security.ApplicationACLsManager; import org.apache.hadoop.yarn.util.AdHocLogDumper; import org.apache.hadoop.yarn.util.AppsCacheKey; @@ -121,7 +122,6 @@ import org.xml.sax.InputSource; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; @@ -137,7 +137,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -420,7 +421,7 @@ public void testClusterMetricsDefault() throws JSONException, Exception { assertEquals(MediaType.APPLICATION_JSON + ";" + JettyUtils.UTF_8, response.getMediaType().toString()); - JSONObject json =response.readEntity(JSONObject.class); + JSONObject json = response.readEntity(JSONObject.class); verifyClusterMetricsJSON(json); } @@ -634,7 +635,7 @@ public void verifyClusterSchedulerFifo(JSONObject json) throws JSONException, LOG.debug("schedulerInfo: {}", info); assertEquals(11, info.length(), "incorrect number of elements in: " + info); - verifyClusterSchedulerFifoGeneric(info.getString("@xsi.type"), + verifyClusterSchedulerFifoGeneric(info.getString("type"), info.getString("qstate"), (float) info.getDouble("capacity"), (float) info.getDouble("usedCapacity"), info.getInt("minQueueMemoryCapacity"), 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/TestRMWebServicesAppAttempts.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppAttempts.java index 4592d9a7585e8..47a6a66b3d036 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppAttempts.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppAttempts.java @@ -17,7 +17,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.apache.hadoop.conf.Configuration; @@ -37,6 +36,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptState; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.apache.hadoop.yarn.webapp.WebServicesTestUtils; @@ -83,7 +83,7 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -156,9 +156,7 @@ public void testCompletedAppAttempt() throws Exception { .get(Response.class); JSONObject json = response.readEntity(JSONObject.class); JSONObject jsonAppAttempts = json.getJSONObject("appAttempts"); - JSONObject jsonAppAttempt = jsonAppAttempts.getJSONObject("appAttempt"); - JSONArray jsonArray = new JSONArray(); - jsonArray.put(jsonAppAttempt); + JSONArray jsonArray = jsonAppAttempts.getJSONArray("appAttempt"); JSONObject info = jsonArray.getJSONObject(0); String logsLink = info.getString("logsLink"); String containerId = app1.getCurrentAppAttempt().getMasterContainer() 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/TestRMWebServicesAppCustomResourceTypes.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppCustomResourceTypes.java index 947fe7a231ec4..70566a5ee7815 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppCustomResourceTypes.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppCustomResourceTypes.java @@ -17,7 +17,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.apache.hadoop.conf.Configuration; @@ -31,6 +30,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMApp; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.resource.CustomResourceTypesConfigurationProvider; import org.apache.hadoop.yarn.server.resourcemanager.webapp.helper.BufferedClientResponse; import org.apache.hadoop.yarn.server.resourcemanager.webapp.helper.JsonCustomResourceTypeTestcase; @@ -72,7 +72,7 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } 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/TestRMWebServicesApps.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesApps.java index 8885540de15ed..819d20fef3a32 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesApps.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesApps.java @@ -19,7 +19,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.apache.hadoop.conf.Configuration; @@ -44,6 +43,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.apache.hadoop.yarn.webapp.WebServicesTestUtils; @@ -89,7 +89,7 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -280,9 +280,7 @@ public void testAppsHelper(String path, RMApp app, String media, assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject jSONObjectApp = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(jSONObjectApp); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); verifyAppInfo(array.getJSONObject(0), app, hasResourceReq); @@ -306,9 +304,7 @@ public void testAppsQueryState() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject app = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(app); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); verifyAppInfo(array.getJSONObject(0), app1, false); rm.stop(); @@ -334,9 +330,7 @@ public void testAppsQueryStates() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject app = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(app); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); assertEquals("ACCEPTED", array.getJSONObject(0).getString("state"), "state not equal to ACCEPTED"); @@ -384,9 +378,7 @@ public void testAppsQueryStatesComma() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject app = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(app); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); assertEquals("ACCEPTED", array.getJSONObject(0).getString("state"), "state not equal to ACCEPTED"); @@ -430,7 +422,7 @@ public void testAppsQueryStatesNone() throws JSONException, Exception { response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - assertEquals("", json.get("apps").toString(), "apps is not empty"); + assertEquals("{}", json.get("apps").toString(), "apps is not empty"); rm.stop(); } @@ -450,7 +442,7 @@ public void testAppsQueryStateNone() throws JSONException, Exception { response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - assertEquals("", json.get("apps").toString(), "apps is not empty"); + assertEquals("{}", json.get("apps").toString(), "apps is not empty"); rm.stop(); } @@ -543,9 +535,7 @@ public void testAppsQueryFinalStatus() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject app = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(app); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); verifyAppInfo(array.getJSONObject(0), app1, false); rm.stop(); @@ -566,7 +556,7 @@ public void testAppsQueryFinalStatusNone() throws JSONException, Exception { response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - assertEquals("", json.get("apps").toString(), "apps is not null"); + assertEquals("{}", json.get("apps").toString(), "apps is not null"); rm.stop(); } @@ -719,9 +709,7 @@ public void testAppsQueryQueueAndStateOneFinishedApp() throws Exception { JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject app = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(app); + JSONArray array = apps.getJSONArray("app"); Set appIds = getApplicationIds(array); assertFalse(appIds.contains(runningApp.getApplicationId().toString()), @@ -833,9 +821,7 @@ public void testAppsQueryStartBeginSome() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject app = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(app); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); rm.stop(); } @@ -857,7 +843,7 @@ public void testAppsQueryStartEnd() throws JSONException, Exception { response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - assertEquals("", json.get("apps").toString(), "apps is not empty"); + assertEquals("{}", json.get("apps").toString(), "apps is not empty"); rm.stop(); } @@ -910,9 +896,7 @@ public void testAppsQueryFinishBegin() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject appsJSONObject = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(appsJSONObject); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); rm.stop(); } @@ -981,9 +965,7 @@ public void testAppsQueryFinishBeginEnd() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject appsJSONObject = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(appsJSONObject); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); rm.stop(); } @@ -1033,9 +1015,7 @@ public void testAppsQueryAppTypes() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject appsJSONObject = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(appsJSONObject); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); assertEquals("MAPREDUCE", array.getJSONObject(0).getString("applicationType")); @@ -1120,9 +1100,7 @@ public void testAppsQueryAppTypes() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - appsJSONObject = apps.getJSONObject("app"); - array = new JSONArray(); - array.put(appsJSONObject); + array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); assertEquals("YARN", array.getJSONObject(0).getString("applicationType")); @@ -1138,9 +1116,7 @@ public void testAppsQueryAppTypes() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - appsJSONObject = apps.getJSONObject("app"); - array = new JSONArray(); - array.put(appsJSONObject); + array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); assertEquals("YARN", array.getJSONObject(0).getString("applicationType")); @@ -1255,9 +1231,7 @@ public void testAppsQueryWithDeselects() assertEquals(1, json.length(), "incorrect number of elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - JSONObject appsJSONObject = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(appsJSONObject); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); JSONObject app = array.getJSONObject(0); assertTrue(!app.has("resourceRequests"), "resource requests shouldn't exist"); @@ -1272,9 +1246,7 @@ public void testAppsQueryWithDeselects() assertEquals(1, json.length(), "incorrect number of elements"); apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - appsJSONObject = apps.getJSONObject("app"); - array = new JSONArray(); - array.put(appsJSONObject); + array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); app = array.getJSONObject(0); assertTrue(!app.has("amNodeLabelExpression"), @@ -1290,9 +1262,7 @@ public void testAppsQueryWithDeselects() assertEquals(1, json.length(), "incorrect number of elements"); apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - appsJSONObject = apps.getJSONObject("app"); - array = new JSONArray(); - array.put(appsJSONObject); + array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); app = array.getJSONObject(0); assertTrue(!app.has("timeouts"), "Timeouts shouldn't exist"); @@ -1309,9 +1279,7 @@ public void testAppsQueryWithDeselects() assertEquals(1, json.length(), "incorrect number of elements"); apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - appsJSONObject = apps.getJSONObject("app"); - array = new JSONArray(); - array.put(appsJSONObject); + array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); app = array.getJSONObject(0); assertTrue(!app.has("appNodeLabelExpression"), "AppNodeLabelExpression shouldn't exist"); @@ -1328,9 +1296,7 @@ public void testAppsQueryWithDeselects() assertEquals(1, json.length(), "incorrect number of elements"); apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of elements"); - appsJSONObject = apps.getJSONObject("app"); - array = new JSONArray(); - array.put(appsJSONObject); + array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect number of elements"); app = array.getJSONObject(0); assertTrue(!app.has("resourceInfo"), "Resource info shouldn't exist"); @@ -1421,9 +1387,7 @@ public void testAppStatistics() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); appsStatInfo = json.getJSONObject("appStatInfo"); assertEquals(1, appsStatInfo.length(), "incorrect number of elements"); - JSONObject statItem = appsStatInfo.getJSONObject("statItem"); - statItems = new JSONArray(); - statItems.put(statItem); + statItems = appsStatInfo.getJSONArray("statItem"); assertEquals(1, statItems.length(), "incorrect number of elements"); assertEquals("ACCEPTED", statItems.getJSONObject(0).getString("state")); assertEquals("*", statItems.getJSONObject(0).getString("type")); @@ -1789,7 +1753,7 @@ public void verifyAppsXML(NodeList nodes, RMApp app, boolean hasResourceReq) public void verifyAppInfo(JSONObject info, RMApp app, boolean hasResourceReqs) throws JSONException, Exception { - int expectedNumberOfElements = 41 + (hasResourceReqs ? 2 : 0); + int expectedNumberOfElements = 40 + (hasResourceReqs ? 2 : 0); String appNodeLabelExpression = null; String amNodeLabelExpression = null; if (app.getApplicationSubmissionContext() @@ -1836,10 +1800,8 @@ public void verifyAppInfo(JSONObject info, RMApp app, boolean hasResourceReqs) amRPCAddress); if (hasResourceReqs) { - JSONObject resourceRequests = info.getJSONObject("resourceRequests"); - JSONArray array = new JSONArray(); - array.put(resourceRequests); - verifyResourceRequests(array, app); + JSONArray resourceRequests = info.getJSONArray("resourceRequests"); + verifyResourceRequests(resourceRequests, app); } } 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/TestRMWebServicesAppsCustomResourceTypes.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppsCustomResourceTypes.java index f1c8dd3137e58..b92d9fa2ddbfa 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppsCustomResourceTypes.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppsCustomResourceTypes.java @@ -19,7 +19,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.apache.hadoop.conf.Configuration; @@ -34,6 +33,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.resource.CustomResourceTypesConfigurationProvider; import org.apache.hadoop.yarn.server.resourcemanager.webapp.helper.BufferedClientResponse; import org.apache.hadoop.yarn.server.resourcemanager.webapp.helper.JsonCustomResourceTypeTestcase; @@ -79,7 +79,7 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -174,9 +174,7 @@ public void testRunningAppsJson() throws Exception { assertEquals(1, json.length(), "incorrect number of apps elements"); JSONObject apps = json.getJSONObject("apps"); assertEquals(1, apps.length(), "incorrect number of app elements"); - JSONObject app = apps.getJSONObject("app"); - JSONArray array = new JSONArray(); - array.put(app); + JSONArray array = apps.getJSONArray("app"); assertEquals(1, array.length(), "incorrect count of app"); verifyAppInfoJson(array.getJSONObject(0), app1, rm); 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/TestRMWebServicesAppsModification.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppsModification.java index a28e0e9084412..a88f8a1acae0e 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppsModification.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesAppsModification.java @@ -18,6 +18,7 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; +import static org.apache.hadoop.yarn.server.resourcemanager.webapp.TestWebServiceUtil.toJson; import static org.apache.hadoop.yarn.webapp.WebServicesTestUtils.assertResponseStatusCode; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; @@ -29,7 +30,6 @@ import java.io.File; import java.io.IOException; import java.io.StringReader; -import java.io.StringWriter; import java.net.URI; import java.nio.charset.StandardCharsets; import java.security.Principal; @@ -55,7 +55,6 @@ import javax.ws.rs.core.Application; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import javax.xml.bind.JAXBException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; @@ -105,15 +104,18 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.CredentialsInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LocalResourceInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LogAggregationContextInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.AppStateReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.ExcludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.IncludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.Times; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.apache.hadoop.yarn.webapp.WebServicesTestUtils; + +import org.codehaus.jettison.json.JSONArray; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject; +import org.glassfish.jersey.jettison.internal.entity.JettisonObjectProvider; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.Timeout; import org.junit.jupiter.params.ParameterizedTest; @@ -125,11 +127,7 @@ import org.xml.sax.SAXException; import com.google.inject.Singleton; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonMarshaller; -import org.glassfish.jersey.jettison.internal.entity.JettisonObjectProvider.App; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import static javax.ws.rs.core.Response.Status.ACCEPTED; @@ -159,55 +157,14 @@ public class TestRMWebServicesAppsModification extends JerseyTestBase { private HttpServletRequest hsRequest = mock(HttpServletRequest.class); private HttpServletResponse hsResponse = mock(HttpServletResponse.class); - private static final JettisonMarshaller APP_STATE_WRITER; - static { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(AppState.class); - APP_STATE_WRITER = jettisonJaxbContext.createJsonMarshaller(); - } catch (JAXBException e) { - throw new RuntimeException(e); - } - } - - private static final JettisonMarshaller APP_PRIORITY_WRITER; - static { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(AppPriority.class); - APP_PRIORITY_WRITER = jettisonJaxbContext.createJsonMarshaller(); - } catch (JAXBException e) { - throw new RuntimeException(e); - } - } - - private static final JettisonMarshaller APP_QUEUE_WRITER; - static { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(AppQueue.class); - APP_QUEUE_WRITER = jettisonJaxbContext.createJsonMarshaller(); - } catch (JAXBException e) { - throw new RuntimeException(e); - } - } - - private static final JettisonMarshaller APP_TIMEOUT_WRITER; - static { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(AppTimeoutInfo.class); - APP_TIMEOUT_WRITER = jettisonJaxbContext.createJsonMarshaller(); - } catch (JAXBException e) { - throw new RuntimeException(e); - } - } - @Override protected Application configure() { config = new ResourceConfig(); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -379,10 +336,9 @@ private WebTarget constructWebResource(WebTarget r, String... paths) { private WebTarget constructWebResource(String... paths) { WebTarget r = target() - .register(App.class) - .register(AppStateReader.class) - .register(ApplicationSubmissionContextInfoReader.class) - .register(ApplicationSubmissionContextInfoWriter.class); + .register(JettisonObjectProvider.App.class) + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); WebTarget ws = r.path("ws").path("v1").path("cluster"); return this.constructWebResource(ws, paths); } @@ -444,7 +400,7 @@ public void testSingleAppKill(int run) throws Exception { Object entity; if (contentType.equals(MediaType.APPLICATION_JSON_TYPE)) { - entity = appStateToJSON(targetState); + entity = toJson(targetState, AppState.class); } else { entity = targetState; } @@ -540,7 +496,7 @@ public void testSingleAppKillInvalidState(int run) throws Exception { AppState targetState = new AppState(targetStateString); Object entity; if (contentType.equals(MediaType.APPLICATION_JSON_TYPE)) { - entity = appStateToJSON(targetState); + entity = toJson(targetState, AppState.class); } else { entity = targetState; } @@ -564,12 +520,6 @@ public void testSingleAppKillInvalidState(int run) throws Exception { rm.stop(); } - private static String appStateToJSON(AppState state) throws Exception { - StringWriter stringWriter = new StringWriter(); - APP_STATE_WRITER.marshallToJSON(state, stringWriter); - return stringWriter.toString(); - } - protected static void verifyAppStateJson(Response response, RMAppState... states) throws JSONException { @@ -577,7 +527,7 @@ protected static void verifyAppStateJson(Response response, response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - String responseState = json.getJSONObject("appstate").getString("state"); + String responseState = json.getString("state"); boolean valid = false; for (RMAppState state : states) { if (state.toString().equals(responseState)) { @@ -774,8 +724,7 @@ protected String validateGetNewApplicationResponse(Response resp) String ret = ""; if (resp.getMediaType().toString().contains(MediaType.APPLICATION_JSON)) { JSONObject json = resp.readEntity(JSONObject.class); - JSONObject newApplication = json.getJSONObject("NewApplication"); - ret = validateGetNewApplicationJsonResponse(newApplication); + ret = validateGetNewApplicationJsonResponse(json); } else if (resp.getMediaType().toString().contains(MediaType.APPLICATION_XML)) { String xml = resp.readEntity(String.class); ret = validateGetNewApplicationXMLResponse(xml); @@ -938,10 +887,11 @@ public void testAppSubmit(String acceptMedia, String contentMedia) String reservationId = ReservationId.newInstance( System.currentTimeMillis(), 1).toString(); appInfo.setReservationId(reservationId); + Entity entity = Entity.entity(appInfo, contentMedia); Response response = this.constructWebResource(urlPath).request(acceptMedia) - .post(Entity.entity(appInfo, contentMedia), Response.class); + .post(entity, Response.class); if (!this.isAuthenticationEnabled()) { assertResponseStatusCode(Response.Status.UNAUTHORIZED, response.getStatusInfo()); @@ -1198,7 +1148,7 @@ public void testUpdateAppPriority(int run) throws Exception { AppPriority priority = new AppPriority(modifiedPriority); Object entity; if (contentType.equals(MediaType.APPLICATION_JSON_TYPE)) { - entity = appPriorityToJSON(priority); + entity = toJson(priority, AppPriority.class); } else { entity = priority; } @@ -1287,7 +1237,7 @@ public void testAppMove(int run) throws Exception { AppQueue targetQueue = new AppQueue("test"); Object entity; if (contentType.equals(MediaType.APPLICATION_JSON_TYPE)) { - entity = appQueueToJSON(targetQueue); + entity = toJson(targetQueue, AppQueue.class); } else { entity = targetQueue; } @@ -1334,27 +1284,13 @@ public void testAppMove(int run) throws Exception { rm.stop(); } - protected static String appPriorityToJSON(AppPriority targetPriority) - throws Exception { - StringWriter stringWriter = new StringWriter(); - APP_PRIORITY_WRITER.marshallToJSON(targetPriority, stringWriter); - return stringWriter.toString(); - } - - protected static String appQueueToJSON(AppQueue targetQueue) throws Exception { - StringWriter stringWriter = new StringWriter(); - APP_QUEUE_WRITER.marshallToJSON(targetQueue, stringWriter); - return stringWriter.toString(); - } - protected static void verifyAppPriorityJson(Response response, int expectedPriority) throws JSONException { assertEquals(MediaType.APPLICATION_JSON_TYPE + ";" + JettyUtils.UTF_8, response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - JSONObject applicationpriority = json.getJSONObject("applicationpriority"); - int responsePriority = applicationpriority.getInt("priority"); + int responsePriority = json.getInt("priority"); assertEquals(expectedPriority, responsePriority); } @@ -1382,7 +1318,7 @@ protected static void verifyAppQueueJson(Response response, String queue) response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - String responseQueue = json.getJSONObject("appqueue").getString("queue"); + String responseQueue = json.getString("queue"); assertEquals(queue, responseQueue); } @@ -1433,8 +1369,8 @@ public void testUpdateAppTimeout(int run) throws Exception { response.getMediaType().toString()); JSONObject js = response.readEntity(JSONObject.class).getJSONObject("timeouts"); - JSONObject entity = js.getJSONObject("timeout"); - verifyAppTimeoutJson(entity, + JSONArray entity = js.getJSONArray("timeout"); + verifyAppTimeoutJson(entity.getJSONObject(0), ApplicationTimeoutType.LIFETIME, "UNLIMITED", -1); } @@ -1454,6 +1390,7 @@ public void testUpdateAppTimeout(int run) throws Exception { response.getStatusInfo()); continue; } + assertResponseStatusCode(Response.Status.OK, response.getStatusInfo()); if (mediaType.contains(MediaType.APPLICATION_JSON)) { verifyAppTimeoutJson(response, ApplicationTimeoutType.LIFETIME, @@ -1496,7 +1433,7 @@ private Object getAppTimeoutInfoEntity(ApplicationTimeoutType type, Object entity; if (contentType.equals(MediaType.APPLICATION_JSON_TYPE)) { - entity = appTimeoutToJSON(timeoutUpdate); + entity = toJson(timeoutUpdate, AppTimeoutInfo.class); } else { entity = timeoutUpdate; } @@ -1544,11 +1481,4 @@ protected static void verifyAppTimeoutXML(Response response, assertTrue(WebServicesTestUtils.getXmlLong(element, "remainingTimeInSeconds") < timeOutFromNow); } - - protected static String appTimeoutToJSON(AppTimeoutInfo timeout) - throws Exception { - StringWriter stringWriter = new StringWriter(); - APP_TIMEOUT_WRITER.marshallToJSON(timeout, stringWriter); - return stringWriter.toString(); - } } 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 3e9f7f30ea61d..df23270da5f3a 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 @@ -31,12 +31,10 @@ import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.codehaus.jettison.json.JSONObject; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeEach; @@ -78,10 +76,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); return config; } 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/TestRMWebServicesCapacitySchedDefaultLabel.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDefaultLabel.java index 49c5f9f46f95d..9e1d3d3f32f6f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDefaultLabel.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDefaultLabel.java @@ -24,12 +24,10 @@ import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePath; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.params.ParameterizedTest; @@ -69,10 +67,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); return config; } 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/TestRMWebServicesCapacitySchedDynamicConfig.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfig.java index 042defbc6f358..bf95db64a899f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfig.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfig.java @@ -25,11 +25,9 @@ import org.apache.hadoop.yarn.conf.YarnConfiguration; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; @@ -91,10 +89,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedDynamicConfigAbsoluteMode.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigAbsoluteMode.java index 2e16928ab97bf..3268be75fb385 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigAbsoluteMode.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigAbsoluteMode.java @@ -24,12 +24,10 @@ import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.params.ParameterizedTest; @@ -91,10 +89,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedDynamicConfigWeightMode.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigWeightMode.java index 586954be7e8b6..4324b24c7c16f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigWeightMode.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigWeightMode.java @@ -24,12 +24,10 @@ import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.params.ParameterizedTest; @@ -90,10 +88,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedDynamicConfigWeightModeDQC.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigWeightModeDQC.java index 563d888a5752c..99d0dc3b6179e 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigWeightModeDQC.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedDynamicConfigWeightModeDQC.java @@ -26,12 +26,10 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerQueueManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePath; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.params.ParameterizedTest; @@ -101,10 +99,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedLegacyQueueCreation.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedLegacyQueueCreation.java index 2b00bb99c469d..870b897babaa9 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedLegacyQueueCreation.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedLegacyQueueCreation.java @@ -31,11 +31,9 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.conf.YarnConfiguration; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; @@ -70,10 +68,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedLegacyQueueCreationAbsoluteMode.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedLegacyQueueCreationAbsoluteMode.java index ee85faa00c5ac..553438046df39 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedLegacyQueueCreationAbsoluteMode.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedLegacyQueueCreationAbsoluteMode.java @@ -25,10 +25,10 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerQueueManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePath; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.junit.jupiter.api.AfterAll; @@ -72,7 +72,7 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } 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/TestRMWebServicesCapacitySchedulerConfigMutation.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerConfigMutation.java index a470bcb8c077d..d76cd87ef222e 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerConfigMutation.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerConfigMutation.java @@ -36,14 +36,13 @@ import org.apache.hadoop.yarn.conf.YarnConfiguration; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.SchedConfUpdateInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.ExcludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.IncludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.dao.QueueConfigInfo; import org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; @@ -83,11 +82,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(SchedConfUpdateInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } @@ -161,7 +158,9 @@ public void testUpdateAbsoluteHierarchyWithZeroCapacities(boolean pLegacyQueueMo QueueConfigInfo b = new QueueConfigInfo("root.a", capacityChange); updateInfo.getUpdateQueueInfo().add(b); - Response response = target().register(SchedConfUpdateInfoWriter.class) + Response response = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()) .path("ws/v1/cluster/scheduler-conf") .queryParam("user.name", userName) .request(MediaType.APPLICATION_JSON) 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/TestRMWebServicesCapacitySchedulerMixedMode.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedMode.java index 8141cee7e81b8..19f564b70e8a8 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedMode.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedMode.java @@ -24,10 +24,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -79,7 +79,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentage.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentage.java index 4782b44c1275a..88bb76c02f47d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentage.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentage.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -79,7 +79,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeight.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeight.java index a300c10f33f30..08c4176aac5de 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeight.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeight.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -78,7 +78,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeightVector.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeightVector.java index a1cc259060e38..4875c65dbd67b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeightVector.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageAndWeightVector.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -78,7 +78,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageVector.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageVector.java index 0829f24d545ff..643d83321a04b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageVector.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndPercentageVector.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -78,7 +78,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeight.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeight.java index 40cc024052d3a..c977f457e39b8 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeight.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeight.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -78,7 +78,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeightVector.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeightVector.java index 71c2cb5bb69b2..801e70b2fa9d8 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeightVector.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModeAbsoluteAndWeightVector.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -78,7 +78,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeight.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeight.java index 25ba549f7f22e..74485dbc5f4ff 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeight.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeight.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -77,7 +77,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeightVector.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeightVector.java index 058acf8080b06..3cecbdeede4bd 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeightVector.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySchedulerMixedModePercentageAndWeightVector.java @@ -20,10 +20,10 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.MockRM; import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; @@ -78,7 +78,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } 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/TestRMWebServicesConfigurationMutation.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesConfigurationMutation.java index 5ddaf054be4e8..62306fa67e550 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesConfigurationMutation.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesConfigurationMutation.java @@ -19,7 +19,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.http.JettyUtils; @@ -36,8 +35,9 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePrefixes; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.NodeLabelsInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.SchedConfUpdateInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.ExcludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.IncludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.apache.hadoop.yarn.webapp.dao.QueueConfigInfo; @@ -110,9 +110,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(NodeLabelsInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } @@ -207,8 +207,7 @@ private CapacitySchedulerConfiguration getSchedulerConf() .request(MediaType.APPLICATION_JSON) .get(Response.class); assertEquals(Status.OK.getStatusCode(), response.getStatus()); - JSONObject json = response.readEntity(JSONObject.class). - getJSONObject("configuration"); + JSONObject json = response.readEntity(JSONObject.class); JSONArray items = (JSONArray) json.get("property"); CapacitySchedulerConfiguration parsedConf = new CapacitySchedulerConfiguration(); @@ -248,7 +247,9 @@ public void testFormatSchedulerConf() throws Exception { updateInfo.getUpdateQueueInfo().add(stoppedInfo); // Add a queue root.formattest to the existing three queues - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response = r.path("ws").path("v1").path("cluster") .path("scheduler-conf").queryParam("user.name", userName) .request(MediaType.APPLICATION_JSON) @@ -293,7 +294,9 @@ public void testAddNestedQueue() throws Exception { assertNotNull(orgConf); assertEquals(4, orgConf.getQueues(ROOT).size()); - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -338,7 +341,9 @@ public void testAddNestedQueue() throws Exception { @Test public void testAddWithUpdate() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -368,7 +373,9 @@ public void testAddWithUpdate() throws Exception { @Test public void testUnsetParentQueueOrderingPolicy() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; // Update ordering policy of Leaf Queue root.b to fair @@ -415,7 +422,9 @@ public void testUnsetParentQueueOrderingPolicy() throws Exception { @Test public void testUnsetLeafQueueOrderingPolicy() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; // Update ordering policy of Parent Queue root.c to priority-utilization @@ -459,8 +468,9 @@ public void testUnsetLeafQueueOrderingPolicy() throws Exception { @Test public void testRemoveQueue() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); - + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; stopQueue(ROOT_A_A2); @@ -485,7 +495,9 @@ public void testRemoveQueue() throws Exception { @Test public void testStopWithRemoveQueue() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -514,7 +526,9 @@ public void testStopWithRemoveQueue() throws Exception { @Test public void testRemoveQueueWhichHasQueueMapping() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; CapacityScheduler cs = (CapacityScheduler) rm.getResourceScheduler(); @@ -553,7 +567,9 @@ public void testRemoveQueueWhichHasQueueMapping() throws Exception { @Test public void testStopWithConvertLeafToParentQueue() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; // Set state of queues to STOPPED. @@ -584,7 +600,9 @@ public void testStopWithConvertLeafToParentQueue() throws Exception { @Test public void testRemoveParentQueue() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -607,7 +625,9 @@ public void testRemoveParentQueue() throws Exception { @Test public void testRemoveParentQueueWithCapacity() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -637,7 +657,9 @@ public void testRemoveParentQueueWithCapacity() throws Exception { @Test public void testRemoveMultipleQueues() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -664,7 +686,9 @@ public void testRemoveMultipleQueues() throws Exception { } private void stopQueue(QueuePath... queuePaths) throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -692,7 +716,9 @@ private void stopQueue(QueuePath... queuePaths) throws Exception { @Test public void testUpdateQueue() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -743,7 +769,9 @@ public void testUpdateQueue() throws Exception { @Test public void testUpdateQueueCapacity() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -770,7 +798,9 @@ public void testUpdateQueueCapacity() throws Exception { @Test public void testGlobalConfChange() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; @@ -807,7 +837,9 @@ public void testGlobalConfChange() throws Exception { @Test public void testNodeLabelRemovalResidualConfigsAreCleared() throws Exception { - WebTarget r = target().register(NodeLabelsInfoReader.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); Response response; // 1. Create Node Label: label1 @@ -1010,7 +1042,9 @@ private String getAccessibleNodeLabelsMaxCapacityPropertyName(String label) { @Test public void testValidateWithClusterMaxAllocation() throws Exception { - WebTarget r = target().register(SchedConfUpdateInfoWriter.class); + WebTarget r = target() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()); int clusterMax = YarnConfiguration. DEFAULT_RM_SCHEDULER_MAXIMUM_ALLOCATION_MB * 2; conf.setInt(YarnConfiguration.RM_SCHEDULER_MAXIMUM_ALLOCATION_MB, 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/TestRMWebServicesContainers.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesContainers.java index 4869cdd4c5221..a77d0add7ef5b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesContainers.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesContainers.java @@ -46,15 +46,13 @@ import org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptState; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ApplicationSubmissionContextInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ApplicationSubmissionContextInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; @@ -72,10 +70,9 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(ApplicationSubmissionContextInfoWriter.class); - config.register(ApplicationSubmissionContextInfoReader.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } 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/TestRMWebServicesCustomResourceTypesCommons.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCustomResourceTypesCommons.java index 3307056dee150..bbd5a5c71d100 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCustomResourceTypesCommons.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCustomResourceTypesCommons.java @@ -93,7 +93,7 @@ public static JSONArray parseResourceRequests(JSONObject info) throws JSONExcept } static int getExpectedNumberOfElements(RMApp app) { - int expectedNumberOfElements = 40 + 2; // 2 -> resourceRequests + int expectedNumberOfElements = 39 + 2; // 2 -> resourceRequests if (app.getApplicationSubmissionContext() .getNodeLabelExpression() != null) { expectedNumberOfElements++; 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/TestRMWebServicesDelegationTokenAuthentication.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesDelegationTokenAuthentication.java index c813f477f9d88..aa6a1c1ffd588 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesDelegationTokenAuthentication.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesDelegationTokenAuthentication.java @@ -374,7 +374,7 @@ public Void call() throws Exception { try { reader = new BufferedReader(new InputStreamReader(response, StandardCharsets.UTF_8)); for (String line; (line = reader.readLine()) != null;) { - JSONObject obj = new JSONObject(line).getJSONObject("delegation-token"); + JSONObject obj = new JSONObject(line); if (obj.has("token")) { token = obj.getString("token"); } @@ -457,7 +457,7 @@ public String call() throws Exception { String line; while ((line = reader.readLine()) != null) { String dtoken = line; - JSONObject obj = new JSONObject(dtoken).getJSONObject("delegation-token"); + JSONObject obj = new JSONObject(dtoken); if (obj.has("token")) { reader.close(); response.close(); 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/TestRMWebServicesDelegationTokens.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesDelegationTokens.java index 45b7cd3952579..bb60d45abd068 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesDelegationTokens.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesDelegationTokens.java @@ -63,6 +63,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.ResourceScheduler; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.apache.hadoop.yarn.webapp.WebServicesTestUtils; @@ -88,7 +89,6 @@ import static org.apache.hadoop.yarn.server.resourcemanager.webapp.TestWebServiceUtil.toJson; import static org.apache.hadoop.yarn.server.resourcemanager.webapp.TestWebServiceUtil.toEntity; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.logging.LoggingFeature; import org.glassfish.jersey.server.ResourceConfig; @@ -111,7 +111,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); config.register(TestRMWebServicesAppsModification.TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); return config; } @@ -747,8 +748,7 @@ private void verifySimpleAuthCancel() { throws IOException, ParserConfigurationException, SAXException, JSONException { if (response.getMediaType().toString().contains(MediaType.APPLICATION_JSON)) { - return getDelegationTokenFromJson( - response.readEntity(JSONObject.class).getJSONObject("delegation-token")); + return getDelegationTokenFromJson(response.readEntity(JSONObject.class)); } return getDelegationTokenFromXML(response.readEntity(String.class)); } 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/TestRMWebServicesForCSWithPartitions.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesForCSWithPartitions.java index 3d42dd8c9b1fc..8b4b2fa3f7481 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesForCSWithPartitions.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesForCSWithPartitions.java @@ -71,6 +71,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.activities.ActivityState; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePath; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.resource.Resources; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; @@ -88,7 +89,6 @@ import org.apache.hadoop.thirdparty.com.google.common.collect.ImmutableSet; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; @@ -130,7 +130,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } 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/TestRMWebServicesNodeLabels.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesNodeLabels.java index d04488d871df2..26b8382d65df1 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesNodeLabels.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesNodeLabels.java @@ -18,6 +18,7 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; +import static org.apache.hadoop.yarn.server.resourcemanager.webapp.TestWebServiceUtil.toJson; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -26,7 +27,6 @@ import static org.mockito.Mockito.when; import java.io.IOException; -import java.io.StringWriter; import java.security.Principal; import java.util.ArrayList; import java.util.List; @@ -46,6 +46,7 @@ import org.apache.commons.lang3.tuple.Pair; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.util.Lists; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.apache.hadoop.http.JettyUtils; @@ -59,9 +60,9 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntry; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.NodeLabelsInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.LabelsToNodesInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.NodeToLabelsInfoReader; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.ExcludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.IncludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.apache.hadoop.yarn.webapp.WebServicesTestUtils; @@ -71,9 +72,6 @@ import org.junit.jupiter.api.Test; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonMarshaller; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; public class TestRMWebServicesNodeLabels extends JerseyTestBase { @@ -121,8 +119,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(NodeLabelsInfoReader.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -166,11 +164,10 @@ public TestRMWebServicesNodeLabels() { } private WebTarget getClusterWebResource() { - return targetWithJsonObject(). - register(NodeLabelsInfoReader.class). - register(LabelsToNodesInfoReader.class). - register(NodeToLabelsInfoReader.class). - path(PATH_WS).path(PATH_V1).path(PATH_CLUSTER); + return targetWithJsonObject() + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()) + .path(PATH_WS).path(PATH_V1).path(PATH_CLUSTER); } private Response get(String path) { @@ -215,9 +212,11 @@ private Response post(String path, String queryUserName, Object payload, webTarget = webTarget.queryParam(param.getKey(), value); } } - return webTarget.request(MediaType.APPLICATION_JSON) - .post(Entity.entity(toJson(payload, payloadClass), - MediaType.APPLICATION_JSON), Response.class); + Entity entity = payload == null + ? null + : Entity.entity(toJson(payload, payloadClass), MediaType.APPLICATION_JSON); + + return webTarget.request(MediaType.APPLICATION_JSON).post(entity, Response.class); } @Test @@ -697,16 +696,4 @@ public void testNodeLabelPartitionInfo() throws Exception { assertNotNull(nodes.getPartitionInfo()); assertNotNull(nodes.getPartitionInfo().getResourceAvailable()); } - - @SuppressWarnings("rawtypes") - private String toJson(Object obj, Class klass) throws Exception { - if (obj == null) { - return null; - } - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(klass); - JettisonMarshaller jsonMarshaller = jettisonJaxbContext.createJsonMarshaller(); - StringWriter stringWriter = new StringWriter(); - jsonMarshaller.marshallToJSON(obj, stringWriter); - return stringWriter.toString(); - } } 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/TestRMWebServicesNodes.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesNodes.java index aa3157b5d0679..f2295ab777d6c 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesNodes.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesNodes.java @@ -88,8 +88,9 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.ResourceOptionInfoReader; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.writer.ResourceOptionInfoWriter; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.ExcludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.IncludeRootJSONProvider; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.Records; import org.apache.hadoop.yarn.util.RackResolver; import org.apache.hadoop.yarn.util.resource.Resources; @@ -97,6 +98,7 @@ import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.apache.hadoop.yarn.webapp.WebServicesTestUtils; + import org.codehaus.jettison.json.JSONArray; import org.codehaus.jettison.json.JSONException; import org.codehaus.jettison.json.JSONObject; @@ -109,7 +111,6 @@ import org.apache.hadoop.thirdparty.com.google.common.base.Joiner; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; @@ -127,7 +128,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); config.register(TestRMCustomAuthFilter.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -292,10 +294,7 @@ public void testNodesQueryNew() throws Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject nodes = json.getJSONObject("nodes"); assertEquals(1, nodes.length(), "incorrect number of elements"); - JSONObject node = nodes.getJSONObject("node"); - JSONArray nodeArray = new JSONArray(); - nodeArray.put(node); - + JSONArray nodeArray = nodes.getJSONArray("node"); assertEquals(1, nodeArray.length(), "incorrect number of elements"); JSONObject info = nodeArray.getJSONObject(0); @@ -316,7 +315,7 @@ public void testNodesQueryStateNone() throws JSONException, Exception { response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - assertEquals("", json.get("nodes").toString(), "nodes is not empty"); + assertEquals("{}", json.get("nodes").toString(), "nodes is not empty"); } @Test @@ -428,9 +427,7 @@ public void testNodesQueryRunning() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject nodes = json.getJSONObject("nodes"); assertEquals(1, nodes.length(), "incorrect number of elements"); - JSONObject node = nodes.getJSONObject("node"); - JSONArray nodeArray = new JSONArray(); - nodeArray.put(node); + JSONArray nodeArray = nodes.getJSONArray("node"); assertEquals(1, nodeArray.length(), "incorrect number of elements"); } @@ -447,7 +444,7 @@ public void testNodesQueryHealthyFalse() throws JSONException, Exception { response.getMediaType().toString()); JSONObject json = response.readEntity(JSONObject.class); assertEquals(1, json.length(), "incorrect number of elements"); - assertEquals("", json.get("nodes").toString(), "nodes is not empty"); + assertEquals("{}", json.get("nodes").toString(), "nodes is not empty"); } public void testNodesHelper(String path, String media) throws JSONException, @@ -739,9 +736,7 @@ public void testNodesResourceUtilization() throws JSONException, Exception { assertEquals(1, json.length(), "incorrect number of elements"); JSONObject nodes = json.getJSONObject("nodes"); assertEquals(1, nodes.length(), "incorrect number of elements"); - JSONObject jsonNode = nodes.getJSONObject("node"); - JSONArray nodeArray = new JSONArray(); - nodeArray.put(jsonNode); + JSONArray nodeArray = nodes.getJSONArray("node"); assertEquals(1, nodeArray.length(), "incorrect number of elements"); JSONObject info = nodeArray.getJSONObject(0); @@ -752,8 +747,8 @@ public void testNodesResourceUtilization() throws JSONException, Exception { @Test public void testUpdateNodeResource() throws Exception { WebTarget r = targetWithJsonObject() - .register(ResourceOptionInfoReader.class) - .register(ResourceOptionInfoWriter.class) + .register(new IncludeRootJSONProvider()) + .register(new ExcludeRootJSONProvider()) .path(RMWSConsts.RM_WEB_SERVICE_PATH); r = r.queryParam("user.name", userName); @@ -1023,10 +1018,8 @@ public void testNodeAttributesInfo() throws Exception { String entity = response.readEntity(String.class); JSONObject nodesInfoJson = new JSONObject(entity); - JSONObject jsonNodes = nodesInfoJson.getJSONObject("nodes"); - JSONObject jsonNode = jsonNodes.getJSONObject("node"); - JSONArray nodes = new JSONArray(); - nodes.put(jsonNode); + JSONArray nodes = nodesInfoJson.getJSONObject("nodes") + .getJSONArray("node"); JSONObject nodeJson = nodes.getJSONObject(0); JSONArray nodeAttributesInfo = nodeJson.getJSONObject("nodeAttributesInfo") .getJSONArray("nodeAttributeInfo"); 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/TestRMWebServicesReservation.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesReservation.java index 1d8c6bab87f19..40f78b44b98d9 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesReservation.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesReservation.java @@ -18,6 +18,7 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; +import static org.apache.hadoop.yarn.server.resourcemanager.webapp.TestWebServiceUtil.fromJson; import static org.apache.hadoop.yarn.server.resourcemanager.webapp.TestWebServiceUtil.toJson; import static org.assertj.core.api.Assertions.assertThat; import static org.apache.hadoop.yarn.webapp.WebServicesTestUtils.assertResponseStatusCode; @@ -28,7 +29,6 @@ import java.io.File; import java.io.IOException; -import java.io.StringReader; import java.net.URL; import java.security.Principal; import java.util.Arrays; @@ -45,7 +45,6 @@ import javax.ws.rs.core.Application; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import javax.xml.bind.JAXBException; import org.apache.commons.io.FileUtils; import org.apache.hadoop.conf.Configuration; @@ -71,6 +70,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo; import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.Clock; import org.apache.hadoop.yarn.util.UTCClock; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; @@ -82,9 +82,6 @@ import org.junit.jupiter.api.AfterEach; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.junit.jupiter.params.ParameterizedTest; @@ -112,17 +109,6 @@ public class TestRMWebServicesReservation extends JerseyTestBase { private static final String GET_NEW_RESERVATION_PATH = "reservation/new-reservation"; - private static JettisonUnmarshaller reservationSubmissionRequestInfoReader; - static { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext( - ReservationSubmissionRequestInfo.class); - reservationSubmissionRequestInfoReader = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - throw new RuntimeException(e); - } - } - private ResourceConfig config; private HttpServletRequest hsRequest = mock(HttpServletRequest.class); private HttpServletResponse hsResponse = mock(HttpServletResponse.class); @@ -162,7 +148,8 @@ protected Application configure() { if (setAuthFilter) { config.register(TestRMCustomAuthFilter.class); } - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -480,9 +467,7 @@ public void testTimeIntervalRequestListReservation(int run, boolean recurrence) return; } - JSONObject reservations = json. - getJSONObject("reservationListInfo"). - getJSONObject("reservations"); + JSONObject reservations = json.getJSONArray("reservations").getJSONObject(0); testRDLHelper(reservations); @@ -530,8 +515,7 @@ public void testSameTimeIntervalRequestListReservation(int run, boolean recurren return; } - JSONObject reservations = - json.getJSONObject("reservationListInfo").getJSONObject("reservations"); + JSONObject reservations = json.getJSONArray("reservations").getJSONObject(0); testRDLHelper(reservations); @@ -573,9 +557,7 @@ public void testInvalidTimeIntervalRequestListReservation(int run, boolean recur return; } - JSONArray reservations = json. - getJSONObject("reservationListInfo"). - getJSONArray("reservations"); + JSONArray reservations = json.getJSONArray("reservations"); assertEquals(2, reservations.length()); @@ -619,8 +601,8 @@ public void testInvalidEndTimeRequestListReservation(int run, boolean recurrence if (!enableRecurrence) { JSONObject reservations = json. - getJSONObject("reservationListInfo"). - getJSONObject("reservations"); + getJSONArray("reservations") + .getJSONObject(0); testRDLHelper(reservations); @@ -633,7 +615,7 @@ public void testInvalidEndTimeRequestListReservation(int run, boolean recurrence // picked up by the search interval since it is greater than the period // of the reservation. JSONArray reservations = - json.getJSONObject("reservationListInfo").getJSONArray("reservations"); + json.getJSONArray("reservations"); assertEquals(2, reservations.length()); } @@ -671,8 +653,7 @@ public void testEmptyEndTimeRequestListReservation(int run, boolean recurrence) } if (!enableRecurrence) { - JSONObject reservations = json. - getJSONObject("reservationListInfo").getJSONObject("reservations"); + JSONObject reservations = json.getJSONArray("reservations").getJSONObject(0); testRDLHelper(reservations); @@ -685,7 +666,7 @@ public void testEmptyEndTimeRequestListReservation(int run, boolean recurrence) // picked up by the search interval since it is greater than the period // of the reservation. JSONArray reservations = - json.getJSONObject("reservationListInfo").getJSONArray("reservations"); + json.getJSONArray("reservations"); assertEquals(2, reservations.length()); } @@ -724,9 +705,7 @@ public void testInvalidStartTimeRequestListReservation(int run, boolean recurren return; } - JSONObject reservations = json. - getJSONObject("reservationListInfo"). - getJSONObject("reservations"); + JSONObject reservations = json.getJSONArray("reservations").getJSONObject(0); testRDLHelper(reservations); @@ -770,8 +749,7 @@ public void testEmptyStartTimeRequestListReservation(int run, boolean recurrence return; } - JSONObject reservations = json. - getJSONObject("reservationListInfo").getJSONObject("reservations"); + JSONObject reservations = json.getJSONArray("reservations").getJSONObject(0); testRDLHelper(reservations); @@ -807,12 +785,9 @@ public void testQueueOnlyRequestListReservation(int run, boolean recurrence) thr return; } - assertThat(json.getJSONObject("reservationListInfo") - .getJSONArray("reservations").length()).isEqualTo(2); - testRDLHelper(json.getJSONObject("reservationListInfo") - .getJSONArray("reservations").getJSONObject(0)); - testRDLHelper(json.getJSONObject("reservationListInfo") - .getJSONArray("reservations").getJSONObject(1)); + assertThat(json.getJSONArray("reservations").length()).isEqualTo(2); + testRDLHelper(json.getJSONArray("reservations").getJSONObject(0)); + testRDLHelper(json.getJSONArray("reservations").getJSONObject(1)); rm.stop(); } @@ -895,9 +870,7 @@ public void testReservationIdRequestListReservation(int run, boolean recurrence) return; } - JSONObject reservations = json. - getJSONObject("reservationListInfo"). - getJSONObject("reservations"); + JSONObject reservations = json.getJSONArray("reservations").getJSONObject(0); testRDLHelper(reservations); @@ -959,7 +932,7 @@ public void testIncludeResourceAllocations(int run, boolean recurrence) throws E } JSONObject reservations = - json.getJSONObject("reservationListInfo").getJSONObject("reservations"); + json.getJSONArray("reservations").getJSONObject(0); testRDLHelper(reservations); @@ -998,8 +971,8 @@ public void testExcludeResourceAllocations(int run, boolean recurrence) throws E } JSONObject reservations = json. - getJSONObject("reservationListInfo"). - getJSONObject("reservations"); + getJSONArray("reservations") + .getJSONObject(0); testRDLHelper(reservations); @@ -1061,13 +1034,9 @@ private ReservationId getReservationIdTestHelper(int fallbackReservationId) return ReservationId.newInstance(clock.getTime(), fallbackReservationId); } - System.out.println("RESPONSE:" + response); assertEquals(MediaType.APPLICATION_JSON_TYPE + ";" + JettyUtils.UTF_8, response.getMediaType().toString()); - JSONObject json = - response. - readEntity(JSONObject.class). - getJSONObject("new-reservation"); + JSONObject json = response.readEntity(JSONObject.class).getJSONObject("new-reservation"); assertEquals(1, json.length(), "incorrect number of elements"); ReservationId rid = null; @@ -1107,9 +1076,9 @@ private Response reservationSubmissionTestHelper(String path, private Response submitAndVerifyReservation(String path, String media, String reservationJson) throws Exception { - ReservationSubmissionRequestInfo rsci = reservationSubmissionRequestInfoReader. - unmarshalFromJSON(new StringReader(reservationJson), - ReservationSubmissionRequestInfo.class); + ReservationSubmissionRequestInfo rsci = + fromJson(reservationJson, ReservationSubmissionRequestInfo.class); + Thread.sleep(1000); Response response = constructWebResource(path) .request(MediaType.APPLICATION_JSON) @@ -1129,18 +1098,8 @@ private void updateReservationTestHelper(String path, String reservationJson = loadJsonFile("update-reservation.json"); - JettisonUnmarshaller reservationUpdateRequestInfoReader; - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext( - ReservationUpdateRequestInfo.class); - reservationUpdateRequestInfoReader = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - throw new RuntimeException(e); - } - - ReservationUpdateRequestInfo rsci = reservationUpdateRequestInfoReader. - unmarshalFromJSON(new StringReader(reservationJson), - ReservationUpdateRequestInfo.class); + ReservationUpdateRequestInfo rsci = + fromJson(reservationJson, ReservationUpdateRequestInfo.class); if (this.isAuthenticationEnabled()) { // only works when previous submit worked @@ -1187,18 +1146,8 @@ private void testDeleteReservationHelper(String path, String reservationJson = loadJsonFile("delete-reservation.json"); - JettisonUnmarshaller reader; - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext( - ReservationDeleteRequestInfo.class); - reader = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - throw new RuntimeException(e); - } - - ReservationDeleteRequestInfo rsci = reader. - unmarshalFromJSON(new StringReader(reservationJson), - ReservationDeleteRequestInfo.class); + ReservationDeleteRequestInfo rsci = + fromJson(reservationJson, ReservationDeleteRequestInfo.class); if (this.isAuthenticationEnabled()) { // only works when previous submit worked @@ -1214,7 +1163,6 @@ private void testDeleteReservationHelper(String path, .accept(media) .post(Entity.entity(toJson(rsci, ReservationDeleteRequestInfo.class), MediaType.APPLICATION_JSON_TYPE), Response.class); - if (!this.isAuthenticationEnabled()) { assertResponseStatusCode(Response.Status.UNAUTHORIZED, response.getStatusInfo()); return; @@ -1244,7 +1192,7 @@ private JSONObject testListReservationHelper(WebTarget target) throws Exception private JSONObject testListReservationHelper(WebTarget target, Response.Status status) throws Exception { Thread.sleep(1000); - Response response = target.request().get(Response.class); + Response response = target.request(MediaType.APPLICATION_JSON_TYPE).get(Response.class); if (!this.isAuthenticationEnabled()) { assertResponseStatusCode(Response.Status.UNAUTHORIZED, response.getStatusInfo()); @@ -1264,13 +1212,8 @@ private void verifyReservationCount(int count) throws Exception { JSONObject json = testListReservationHelper(target); - if (count == 1) { - // If there are any number other than one reservation, this will throw. - json.getJSONObject("reservationListInfo").getJSONObject("reservations"); - } else { - JSONArray reservations = json.getJSONArray("reservations"); - assertTrue(reservations.length() == count); - } + JSONArray reservations = json.getJSONArray("reservations"); + assertEquals(reservations.length(), count); } private boolean isHttpSuccessResponse(Response response) { 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 6e574d79086bd..78d8b0405fdec 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 @@ -19,7 +19,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; @@ -31,7 +30,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.activities.ActivityDiagnosticConstant; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.activities.ActivityState; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacitySchedulerConfiguration; -import org.apache.hadoop.yarn.server.resourcemanager.webapp.reader.NodeLabelsInfoReader; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.junit.jupiter.api.BeforeEach; @@ -119,8 +118,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(NodeLabelsInfoReader.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } 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/TestRMWebServicesSchedulerActivitiesWithMultiNodesEnabled.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesSchedulerActivitiesWithMultiNodesEnabled.java index a588b527b1179..ac9a31fef8833 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesSchedulerActivitiesWithMultiNodesEnabled.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesSchedulerActivitiesWithMultiNodesEnabled.java @@ -18,7 +18,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.apache.hadoop.conf.Configuration; @@ -42,6 +41,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueuePath; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.event.NodeUpdateSchedulerEvent; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.placement.ResourceUsageMultiNodeLookupPolicy; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.resource.Resources; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; @@ -104,7 +104,8 @@ protected Application configure() { config.register(RMWebServices.class); config.register(new JerseyBinder()); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } 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/TestWebServiceUtil.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestWebServiceUtil.java index 642443b15b2d9..f3e2a504df6ae 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestWebServiceUtil.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestWebServiceUtil.java @@ -36,8 +36,9 @@ import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; -import javax.xml.bind.JAXBException; +import javax.xml.bind.JAXBContext; import javax.xml.bind.Marshaller; +import javax.xml.bind.Unmarshaller; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.OutputKeys; @@ -46,6 +47,7 @@ import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; +import javax.xml.transform.stream.StreamSource; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; @@ -53,8 +55,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; import com.fasterxml.jackson.databind.SerializationFeature; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonMarshaller; +import org.eclipse.persistence.jaxb.MarshallerProperties; import org.w3c.dom.Document; import org.xml.sax.InputSource; @@ -195,13 +196,7 @@ public static void assertJsonResponse(Response response, String actual = OBJECT_WRITER.writeValueAsString(jsonNode); updateTestDataAutomatically(expectedResourceFilename, actual); - assertEquals( - // Deserialize/serialise again with the exact same settings - // to make sure jackson upgrade doesn't break the test - OBJECT_WRITER.writeValueAsString( - MAPPER.readTree( - Objects.requireNonNull(getResourceAsString(expectedResourceFilename)))), - actual); + assertEquals(getResourceAsString(expectedResourceFilename), actual); } /** @@ -350,28 +345,46 @@ public static void restoreSchedulerConfigFileInTarget() { public static String toEntity(Object obj, Class klass, String mediaType) throws Exception { - if (mediaType == MediaType.APPLICATION_JSON) { + if (MediaType.APPLICATION_JSON.equals(mediaType)) { return toJson(obj, klass); } - if(mediaType == MediaType.APPLICATION_XML) { + if(MediaType.APPLICATION_XML.equals(mediaType)) { return toXml(obj, klass); } return null; } public static String toJson(Object obj, Class klass) throws Exception { + JAXBContext jc = new JAXBContextResolver().getContext(klass); + Marshaller marshaller = jc.createMarshaller(); + marshaller.setProperty(MarshallerProperties.MEDIA_TYPE, MediaType.APPLICATION_JSON); + marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); StringWriter stringWriter = new StringWriter(); - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(klass); - JettisonMarshaller jettisonMarshaller = jettisonJaxbContext.createJsonMarshaller(); - jettisonMarshaller.marshallToJSON(obj, stringWriter); + marshaller.marshal(obj, stringWriter); return stringWriter.toString(); } - public static String toXml(Object obj, Class klass) throws JAXBException { + public static String toXml(Object obj, Class klass) throws Exception { + JAXBContext jc = new JAXBContextResolver().getContext(klass); + Marshaller marshaller = jc.createMarshaller(); + marshaller.setProperty(MarshallerProperties.MEDIA_TYPE, MediaType.APPLICATION_XML); + marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); StringWriter stringWriter = new StringWriter(); - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(klass); - Marshaller marshaller = jettisonJaxbContext.createMarshaller(); marshaller.marshal(obj, stringWriter); return stringWriter.toString(); } + + public static T fromJson(String json, Class klass) { + try { + JAXBContext jc = new JAXBContextResolver().getContext(klass); + if (jc == null) { + jc = JAXBContext.newInstance(klass); + } + Unmarshaller unmarshaller = jc.createUnmarshaller(); + unmarshaller.setProperty(MarshallerProperties.MEDIA_TYPE, MediaType.APPLICATION_JSON); + return unmarshaller.unmarshal(new StreamSource(new StringReader(json)), klass).getValue(); + } catch (Exception e) { + throw new RuntimeException("Failed to read from json: " + json, e); + } + } } 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/fairscheduler/TestRMWebServicesFairScheduler.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/fairscheduler/TestRMWebServicesFairScheduler.java index 7535ad260a739..bc7b02caf6133 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/fairscheduler/TestRMWebServicesFairScheduler.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/fairscheduler/TestRMWebServicesFairScheduler.java @@ -19,7 +19,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp.fairscheduler; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.apache.hadoop.conf.Configuration; @@ -34,6 +33,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.JAXBContextResolver; import org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServices; import org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServices; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.JerseyTestBase; import org.codehaus.jettison.json.JSONArray; @@ -65,7 +65,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -135,7 +136,7 @@ public void testClusterSchedulerWithSubQueues() JSONObject json = response.readEntity(JSONObject.class); JSONArray subQueueInfo = json.getJSONObject("scheduler") .getJSONObject("schedulerInfo").getJSONObject("rootQueue") - .getJSONObject("childQueues").getJSONObject("queue") + .getJSONObject("childQueues").getJSONArray("queue").getJSONObject(0) .getJSONObject("childQueues").getJSONArray("queue"); // subQueueInfo is consist of subqueue1 and subqueue2 info assertEquals(2, subQueueInfo.length()); 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/fairscheduler/TestRMWebServicesFairSchedulerCustomResourceTypes.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/fairscheduler/TestRMWebServicesFairSchedulerCustomResourceTypes.java index 7fecd4b6aacd2..723dc334c6481 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/fairscheduler/TestRMWebServicesFairSchedulerCustomResourceTypes.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/fairscheduler/TestRMWebServicesFairSchedulerCustomResourceTypes.java @@ -19,7 +19,6 @@ package org.apache.hadoop.yarn.server.resourcemanager.webapp.fairscheduler; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.apache.hadoop.conf.Configuration; @@ -36,6 +35,7 @@ import org.apache.hadoop.yarn.server.resourcemanager.webapp.helper.BufferedClientResponse; import org.apache.hadoop.yarn.server.resourcemanager.webapp.helper.JsonCustomResourceTypeTestcase; import org.apache.hadoop.yarn.server.resourcemanager.webapp.helper.XmlCustomResourceTypeTestCase; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.resource.CustomResourceTypesConfigurationProvider; import org.apache.hadoop.yarn.util.resource.ResourceUtils; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; @@ -77,7 +77,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } @@ -217,11 +218,9 @@ private void verifyJsonResponse(WebTarget path, Response response, testCase.verify(json -> { try { - JSONObject queue = json.getJSONObject("scheduler") + JSONArray queues = json.getJSONObject("scheduler") .getJSONObject("schedulerInfo").getJSONObject("rootQueue") - .getJSONObject("childQueues").getJSONObject("queue"); - JSONArray queues = new JSONArray(); - queues.put(queue); + .getJSONObject("childQueues").getJSONArray("queue"); assertEquals(1, queues.length()); 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/helper/AppInfoJsonVerifications.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/helper/AppInfoJsonVerifications.java index 7bc8f6a0ab30c..951336da2d14a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/helper/AppInfoJsonVerifications.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/helper/AppInfoJsonVerifications.java @@ -26,7 +26,6 @@ import static org.apache.hadoop.yarn.webapp.WebServicesTestUtils.checkStringEqual; import static org.apache.hadoop.yarn.webapp.WebServicesTestUtils.checkStringMatch; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; /** @@ -88,8 +87,8 @@ public static void verify(JSONObject info, RMApp app) throws JSONException { "clusterUsagePerc doesn't match"); assertEquals(1, info.getInt("runningContainers"), "numContainers doesn't match"); - assertNotNull(info.get("preemptedResourceSecondsMap"), - "preemptedResourceSecondsMap should not be null"); + assertTrue(info.isNull("preemptedResourceSecondsMap"), + "preemptedResourceSecondsMap should be null, cause it is empty"); assertEquals(app.getRMAppMetrics().getResourcePreempted().getMemorySize(), info.getInt("preemptedResourceMB"), "preemptedResourceMB doesn't match"); assertEquals(app.getRMAppMetrics().getResourcePreempted().getVirtualCores(), 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/reader/AppStateReader.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/AppStateReader.java deleted file mode 100644 index 3531fdb8557ea..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/AppStateReader.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.reader; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import java.io.IOException; -import java.io.InputStream; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; - -/** - * We have defined a dedicated Reader for AppState, - * aimed at adapting to the Jersey2 framework - * to ensure that JSON can be converted into AppState. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class AppStateReader implements MessageBodyReader { - - private JettisonUnmarshaller jsonUnmarshaller; - - public AppStateReader() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(AppState.class); - jsonUnmarshaller = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isReadable(Class type, Type genericType, Annotation[] annotations, - MediaType mediaType) { - return type == AppState.class; - } - - @Override - public AppState readFrom(Class type, Type genericType, Annotation[] annotations, - MediaType mediaType, MultivaluedMap httpHeaders, InputStream entityStream) - throws IOException, WebApplicationException { - try { - return jsonUnmarshaller.unmarshalFromJSON(entityStream, AppState.class); - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/reader/ApplicationSubmissionContextInfoReader.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/ApplicationSubmissionContextInfoReader.java deleted file mode 100644 index cf94940fe2e7a..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/ApplicationSubmissionContextInfoReader.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.reader; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import java.io.IOException; -import java.io.InputStream; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; - -/** - * We have defined a dedicated Reader for ApplicationSubmissionContextInfo, - * aimed at adapting to the Jersey2 framework - * to ensure that JSON can be converted into ApplicationSubmissionContextInfo. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class ApplicationSubmissionContextInfoReader - implements MessageBodyReader { - - private JettisonUnmarshaller jsonUnmarshaller; - - public ApplicationSubmissionContextInfoReader() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext( - ApplicationSubmissionContextInfo.class); - jsonUnmarshaller = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isReadable(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType) { - return type == ApplicationSubmissionContextInfo.class; - } - - @Override - public ApplicationSubmissionContextInfo readFrom(Class type, - Type genericType, Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, InputStream entityStream) - throws IOException, WebApplicationException { - try { - return jsonUnmarshaller.unmarshalFromJSON(entityStream, - ApplicationSubmissionContextInfo.class); - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/reader/LabelsToNodesInfoReader.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/LabelsToNodesInfoReader.java deleted file mode 100644 index 7f8373205f82c..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/LabelsToNodesInfoReader.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.reader; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import java.io.IOException; -import java.io.InputStream; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; - -/** - * We have defined a dedicated Reader for LabelsToNodesInfo, - * aimed at adapting to the Jersey2 framework - * to ensure that JSON can be converted into LabelsToNodesInfo. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class LabelsToNodesInfoReader implements MessageBodyReader { - - private JettisonUnmarshaller jsonUnmarshaller; - - public LabelsToNodesInfoReader() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(LabelsToNodesInfo.class); - jsonUnmarshaller = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isReadable(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType) { - return type == LabelsToNodesInfo.class; - } - - @Override - public LabelsToNodesInfo readFrom(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, InputStream entityStream) - throws IOException, WebApplicationException { - try { - LabelsToNodesInfo labelsToNodesInfo = - jsonUnmarshaller.unmarshalFromJSON(entityStream, LabelsToNodesInfo.class); - return labelsToNodesInfo; - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/reader/NodeLabelsInfoReader.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/NodeLabelsInfoReader.java deleted file mode 100644 index 71afb95280b45..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/NodeLabelsInfoReader.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.reader; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import java.io.IOException; -import java.io.InputStream; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; - -/** - * We have defined a dedicated Reader for NodeLabelsInfo, - * aimed at adapting to the Jersey2 framework - * to ensure that JSON can be converted into NodeLabelsInfo. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class NodeLabelsInfoReader implements MessageBodyReader { - - private JettisonUnmarshaller jsonUnmarshaller; - - public NodeLabelsInfoReader() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(NodeLabelsInfo.class); - jsonUnmarshaller = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isReadable(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType) { - return type == NodeLabelsInfo.class; - } - - @Override - public NodeLabelsInfo readFrom(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, InputStream entityStream) - throws IOException, WebApplicationException { - try { - NodeLabelsInfo nodeLabelsInfo = - jsonUnmarshaller.unmarshalFromJSON(entityStream, NodeLabelsInfo.class); - return nodeLabelsInfo; - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/reader/NodeToLabelsInfoReader.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/NodeToLabelsInfoReader.java deleted file mode 100644 index d78460f81eeb4..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/NodeToLabelsInfoReader.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.reader; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import java.io.IOException; -import java.io.InputStream; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; - -/** - * We have defined a dedicated Reader for NodeToLabelsInfo, - * aimed at adapting to the Jersey2 framework - * to ensure that JSON can be converted into NodeToLabelsInfo. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class NodeToLabelsInfoReader implements MessageBodyReader { - - private JettisonUnmarshaller jsonUnmarshaller; - - public NodeToLabelsInfoReader() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(NodeToLabelsInfo.class); - jsonUnmarshaller = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isReadable(Class type, - Type genericType, Annotation[] annotations, MediaType mediaType) { - return type == NodeToLabelsInfo.class; - } - - @Override - public NodeToLabelsInfo readFrom(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, - InputStream entityStream) throws IOException, WebApplicationException { - try { - NodeToLabelsInfo nodeLabelsInfo = - jsonUnmarshaller.unmarshalFromJSON(entityStream, NodeToLabelsInfo.class); - return nodeLabelsInfo; - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/reader/ResourceOptionInfoReader.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/ResourceOptionInfoReader.java deleted file mode 100644 index 352e266fbf2de..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/reader/ResourceOptionInfoReader.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.reader; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonUnmarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyReader; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import java.io.IOException; -import java.io.InputStream; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; - -/** - * We have defined a dedicated Reader for ResourceOptionInfo, - * aimed at adapting to the Jersey2 framework - * to ensure that JSON can be converted into ResourceOptionInfo. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class ResourceOptionInfoReader implements MessageBodyReader { - - private JettisonUnmarshaller jsonUnmarshaller; - - public ResourceOptionInfoReader() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext(ResourceOptionInfo.class); - jsonUnmarshaller = jettisonJaxbContext.createJsonUnmarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isReadable(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType) { - return type == ResourceOptionInfo.class; - } - - @Override - public ResourceOptionInfo readFrom(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, InputStream entityStream) - throws IOException, WebApplicationException { - try { - ResourceOptionInfo resourceOptionInfo = - jsonUnmarshaller.unmarshalFromJSON(entityStream, ResourceOptionInfo.class); - return resourceOptionInfo; - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/writer/ApplicationSubmissionContextInfoWriter.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/writer/ApplicationSubmissionContextInfoWriter.java deleted file mode 100644 index ace28592b286c..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/writer/ApplicationSubmissionContextInfoWriter.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.writer; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonMarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import java.io.IOException; -import java.io.OutputStream; -import java.io.StringWriter; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; -import java.nio.charset.StandardCharsets; - -/** - * We have defined a dedicated Writer for ApplicationSubmissionContextInfo, - * aimed at adapting to the Jersey2 framework to ensure - * that ApplicationSubmissionContextInfo can be converted into JSON format. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class ApplicationSubmissionContextInfoWriter - implements MessageBodyWriter { - - private JettisonMarshaller jettisonMarshaller; - private Marshaller marshaller; - - public ApplicationSubmissionContextInfoWriter() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext( - ApplicationSubmissionContextInfo.class); - jettisonMarshaller = jettisonJaxbContext.createJsonMarshaller(); - marshaller = jettisonJaxbContext.createMarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isWriteable(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType) { - return type == ApplicationSubmissionContextInfo.class; - } - - @Override - public void writeTo(ApplicationSubmissionContextInfo applicationSubmissionContextInfo, - Class type, Type genericType, Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, OutputStream entityStream) - throws IOException, WebApplicationException { - StringWriter stringWriter = new StringWriter(); - try { - if (mediaType.toString().equals(MediaType.APPLICATION_JSON)) { - jettisonMarshaller.marshallToJSON(applicationSubmissionContextInfo, stringWriter); - entityStream.write(stringWriter.toString().getBytes(StandardCharsets.UTF_8)); - } - - if (mediaType.toString().equals(MediaType.APPLICATION_XML)) { - marshaller.marshal(applicationSubmissionContextInfo, stringWriter); - entityStream.write(stringWriter.toString().getBytes(StandardCharsets.UTF_8)); - } - - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/writer/ResourceOptionInfoWriter.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/writer/ResourceOptionInfoWriter.java deleted file mode 100644 index 4cfe6a5777e69..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/writer/ResourceOptionInfoWriter.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.writer; - -import org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonMarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import java.io.IOException; -import java.io.OutputStream; -import java.io.StringWriter; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; -import java.nio.charset.StandardCharsets; - -/** - * We have defined a dedicated Writer for ResourceOptionInfo, - * aimed at adapting to the Jersey2 framework to ensure - * that ResourceOptionInfo can be converted into JSON format. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class ResourceOptionInfoWriter implements MessageBodyWriter { - - private JettisonMarshaller jettisonMarshaller; - private Marshaller marshaller; - - public ResourceOptionInfoWriter() { - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext( - ResourceOptionInfo.class); - jettisonMarshaller = jettisonJaxbContext.createJsonMarshaller(); - marshaller = jettisonJaxbContext.createMarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isWriteable(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType) { - return type == ResourceOptionInfo.class; - } - - @Override - public void writeTo(ResourceOptionInfo resourceOptionInfo, Class type, - Type genericType, Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, - OutputStream entityStream) throws IOException, WebApplicationException { - StringWriter stringWriter = new StringWriter(); - try { - if (mediaType.toString().equals(MediaType.APPLICATION_JSON)) { - jettisonMarshaller.marshallToJSON(resourceOptionInfo, stringWriter); - entityStream.write(stringWriter.toString().getBytes(StandardCharsets.UTF_8)); - } - - if (mediaType.toString().equals(MediaType.APPLICATION_XML)) { - marshaller.marshal(resourceOptionInfo, stringWriter); - entityStream.write(stringWriter.toString().getBytes(StandardCharsets.UTF_8)); - } - } catch (JAXBException e) { - throw new IOException(e); - } - } -} 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/writer/SchedConfUpdateInfoWriter.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/writer/SchedConfUpdateInfoWriter.java deleted file mode 100644 index 4863c37a34acc..0000000000000 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/writer/SchedConfUpdateInfoWriter.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.yarn.server.resourcemanager.webapp.writer; - -import org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo; -import org.glassfish.jersey.jettison.JettisonJaxbContext; -import org.glassfish.jersey.jettison.JettisonMarshaller; - -import javax.ws.rs.Consumes; -import javax.ws.rs.WebApplicationException; -import javax.ws.rs.core.MediaType; -import javax.ws.rs.core.MultivaluedMap; -import javax.ws.rs.ext.MessageBodyWriter; -import javax.ws.rs.ext.Provider; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import java.io.IOException; -import java.io.OutputStream; -import java.io.StringWriter; -import java.lang.annotation.Annotation; -import java.lang.reflect.Type; -import java.nio.charset.StandardCharsets; - -/** - * We have defined a dedicated Writer for SchedConfUpdateInfo, - * aimed at adapting to the Jersey2 framework to ensure - * that SchedConfUpdateInfo can be converted into JSON format. - */ -@Provider -@Consumes(MediaType.APPLICATION_JSON) -public class SchedConfUpdateInfoWriter implements MessageBodyWriter { - - private JettisonMarshaller jettisonMarshaller; - private Marshaller marshaller; - - public SchedConfUpdateInfoWriter(){ - try { - JettisonJaxbContext jettisonJaxbContext = new JettisonJaxbContext( - SchedConfUpdateInfo.class); - jettisonMarshaller = jettisonJaxbContext.createJsonMarshaller(); - marshaller = jettisonJaxbContext.createMarshaller(); - } catch (JAXBException e) { - } - } - - @Override - public boolean isWriteable(Class type, Type genericType, - Annotation[] annotations, MediaType mediaType) { - return type == SchedConfUpdateInfo.class; - } - - @Override - public void writeTo(SchedConfUpdateInfo schedConfUpdateInfo, Class type, - Type genericType, Annotation[] annotations, MediaType mediaType, - MultivaluedMap httpHeaders, OutputStream entityStream) - throws IOException, WebApplicationException { - StringWriter stringWriter = new StringWriter(); - try { - if (mediaType.toString().equals(MediaType.APPLICATION_JSON)) { - jettisonMarshaller.marshallToJSON(schedConfUpdateInfo, stringWriter); - entityStream.write(stringWriter.toString().getBytes(StandardCharsets.UTF_8)); - } - - if (mediaType.toString().equals(MediaType.APPLICATION_XML)) { - marshaller.marshal(schedConfUpdateInfo, stringWriter); - entityStream.write(stringWriter.toString().getBytes(StandardCharsets.UTF_8)); - } - } catch (JAXBException e) { - throw new IOException(e); - } - } -} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/webapp/TestRMWithCSRFFilter.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/webapp/TestRMWithCSRFFilter.java index ef17057e89ea4..142cd12eea05d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/webapp/TestRMWithCSRFFilter.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/webapp/TestRMWithCSRFFilter.java @@ -31,9 +31,9 @@ import org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.FifoScheduler; import org.apache.hadoop.yarn.server.resourcemanager.webapp.JAXBContextResolver; import org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServices; +import org.apache.hadoop.yarn.server.resourcemanager.webapp.jsonprovider.JsonProviderFeature; import org.apache.hadoop.yarn.util.YarnVersionInfo; import org.glassfish.jersey.internal.inject.AbstractBinder; -import org.glassfish.jersey.jettison.JettisonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.TestProperties; import org.junit.jupiter.api.BeforeEach; @@ -74,7 +74,8 @@ protected Application configure() { config.register(new JerseyBinder()); config.register(RMWebServices.class); config.register(GenericExceptionHandler.class); - config.register(new JettisonFeature()).register(JAXBContextResolver.class); + config.register(JsonProviderFeature.class); + config.register(JAXBContextResolver.class); forceSet(TestProperties.CONTAINER_PORT, JERSEY_RANDOM_PORT); return config; } diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-after-update.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-after-update.json index 8c2f22446d55d..7444be0c81b90 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-after-update.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-after-update.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -25,13 +25,13 @@ "queue" : [ { "queuePath" : "root.a", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "a", @@ -39,16 +39,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.b", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "b", @@ -59,7 +59,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -67,7 +66,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -78,38 +76,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -117,7 +114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -132,7 +128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -140,7 +135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -155,7 +149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -163,7 +156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -178,7 +170,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -186,7 +177,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -196,17 +186,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -214,7 +203,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -229,7 +217,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -237,7 +224,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -252,7 +238,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -260,7 +245,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -275,7 +259,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -283,7 +266,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -298,7 +280,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -306,7 +287,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -321,7 +301,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -329,7 +308,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -339,14 +317,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -354,7 +331,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -369,7 +345,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -377,7 +352,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -392,7 +366,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -400,7 +373,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -425,29 +397,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -455,7 +426,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -470,7 +440,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -478,7 +447,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -493,7 +461,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -501,7 +468,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -518,16 +484,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.c", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "c", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1003,7 +935,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1011,7 +942,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1022,38 +952,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4096.0,vcores=4.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 4096 + "resourceValue" : "4096.0" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1061,7 +990,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1076,7 +1004,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1084,7 +1011,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1099,7 +1025,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1107,7 +1032,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1122,7 +1046,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1130,7 +1053,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1140,17 +1062,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1158,7 +1079,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1173,7 +1093,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1181,7 +1100,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1196,7 +1114,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1204,7 +1121,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1214,14 +1130,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1229,7 +1144,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1244,7 +1158,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1252,7 +1165,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1267,7 +1179,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1275,7 +1186,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1300,25 +1210,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -1329,7 +1239,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1337,7 +1246,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1348,38 +1256,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1024.0,vcores=1.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 1024 + "resourceValue" : "1024.0" }, { "resourceName" : "vcores", - "resourceValue" : 1 + "resourceValue" : "1.0" } ] }, "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1387,7 +1294,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1402,7 +1308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1410,7 +1315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1425,7 +1329,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1433,7 +1336,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1448,7 +1350,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1456,7 +1357,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1466,17 +1366,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1484,7 +1383,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1499,7 +1397,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1507,7 +1404,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1522,7 +1418,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1530,7 +1425,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1545,7 +1439,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1553,7 +1446,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1568,7 +1460,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1576,7 +1467,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1591,7 +1481,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1599,7 +1488,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1609,14 +1497,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1624,7 +1511,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1639,7 +1525,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1647,7 +1532,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1662,7 +1546,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1670,7 +1553,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1695,29 +1577,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 312, "maxApplicationsPerUser" : 312, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1725,7 +1606,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1740,7 +1620,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1748,7 +1627,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1763,7 +1641,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1771,7 +1648,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1790,7 +1666,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1802,21 +1678,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 32768, "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1824,7 +1699,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1839,7 +1713,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1847,7 +1720,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1862,7 +1734,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1870,7 +1741,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1885,7 +1755,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1893,7 +1762,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1903,7 +1771,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -1936,7 +1804,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1944,7 +1811,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1962,7 +1828,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1970,7 +1835,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1988,7 +1852,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1996,7 +1859,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2013,7 +1875,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2021,7 +1882,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2049,9 +1909,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/configmutation-absolute-hierarchy-before-update.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-before-update.json index 36f16241f67e6..2e9bf9d9feee5 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-before-update.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-before-update.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -24,14 +24,14 @@ "queues" : { "queue" : [ { "queuePath" : "root.a", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "a", @@ -39,16 +39,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.b", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "b", @@ -59,7 +59,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -67,7 +66,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -78,38 +76,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -117,7 +114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -132,7 +128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -140,7 +135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -155,7 +149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -163,7 +156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -178,7 +170,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -186,7 +177,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -196,17 +186,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -214,7 +203,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -229,7 +217,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -237,7 +224,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -252,7 +238,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -260,7 +245,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -275,7 +259,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -283,7 +266,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -298,7 +280,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -306,7 +287,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -321,7 +301,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -329,7 +308,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -339,14 +317,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -354,7 +331,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -369,7 +345,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -377,7 +352,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -392,7 +366,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -400,7 +373,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -425,29 +397,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -455,7 +426,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -470,7 +440,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -478,7 +447,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -493,7 +461,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -501,7 +468,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -518,16 +484,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.c", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "c", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1003,7 +935,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1011,7 +942,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1022,38 +952,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1061,7 +990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1076,7 +1004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1084,7 +1011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1099,7 +1025,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1107,7 +1032,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1122,7 +1046,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1130,7 +1053,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1140,17 +1062,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1158,7 +1079,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1173,7 +1093,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1181,7 +1100,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1196,7 +1114,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1204,7 +1121,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1214,14 +1130,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1229,7 +1144,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1244,7 +1158,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1252,7 +1165,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1267,7 +1179,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1275,7 +1186,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1300,25 +1210,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -1329,7 +1239,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1337,7 +1246,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1348,38 +1256,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1024.0,vcores=1.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 1024 + "resourceValue" : "1024.0" }, { "resourceName" : "vcores", - "resourceValue" : 1 + "resourceValue" : "1.0" } ] }, "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1387,7 +1294,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1402,7 +1308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1410,7 +1315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1425,7 +1329,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1433,7 +1336,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1448,7 +1350,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1456,7 +1357,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1466,17 +1366,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1484,7 +1383,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1499,7 +1397,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1507,7 +1404,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1522,7 +1418,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1530,7 +1425,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1545,7 +1439,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1553,7 +1446,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1568,7 +1460,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1576,7 +1467,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1591,7 +1481,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1599,7 +1488,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1609,14 +1497,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1624,7 +1511,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1639,7 +1525,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1647,7 +1532,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1662,7 +1546,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1670,7 +1553,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1695,29 +1577,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 312, "maxApplicationsPerUser" : 312, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1725,7 +1606,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1740,7 +1620,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1748,7 +1627,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1763,7 +1641,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1771,7 +1648,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1790,7 +1666,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1802,21 +1678,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 32768, "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1824,7 +1699,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1839,7 +1713,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1847,7 +1720,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1862,7 +1734,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1870,7 +1741,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1885,7 +1755,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1893,7 +1762,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1903,7 +1771,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -1936,7 +1804,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1944,7 +1811,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1962,7 +1828,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1970,7 +1835,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1988,7 +1852,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1996,7 +1859,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2013,7 +1875,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2021,7 +1882,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2049,9 +1909,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/configmutation-absolute-hierarchy-legacy-after-update.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-legacy-after-update.json index bcfd64ca9e16f..fbb205aad8888 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-legacy-after-update.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-legacy-after-update.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -25,13 +25,13 @@ "queue" : [ { "queuePath" : "root.a", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "a", @@ -39,16 +39,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.b", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "b", @@ -59,7 +59,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -67,7 +66,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -78,38 +76,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -117,7 +114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -132,7 +128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -140,7 +135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -155,7 +149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -163,7 +156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -178,7 +170,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -186,7 +177,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -196,17 +186,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -214,7 +203,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -229,7 +217,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -237,7 +224,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -252,7 +238,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -260,7 +245,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -275,7 +259,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -283,7 +266,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -298,7 +280,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -306,7 +287,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -321,7 +301,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -329,7 +308,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -339,14 +317,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -354,7 +331,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -369,7 +345,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -377,7 +352,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -392,7 +366,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -400,7 +373,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -425,29 +397,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -455,7 +426,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -470,7 +440,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -478,7 +447,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -493,7 +461,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -501,7 +468,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -518,16 +484,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.c", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "c", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1003,7 +935,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1011,7 +942,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1022,38 +952,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4096.0,vcores=4.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 4096 + "resourceValue" : "4096.0" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1061,7 +990,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1076,7 +1004,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1084,7 +1011,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1099,7 +1025,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1107,7 +1032,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1122,7 +1046,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1130,7 +1053,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1140,17 +1062,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1158,7 +1079,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1173,7 +1093,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1181,7 +1100,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1196,7 +1114,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1204,7 +1121,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1214,14 +1130,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1229,7 +1144,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1244,7 +1158,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1252,7 +1165,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1267,7 +1179,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1275,7 +1186,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1300,25 +1210,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -1329,7 +1239,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1337,7 +1246,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1348,38 +1256,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1024.0,vcores=1.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 1024 + "resourceValue" : "1024.0" }, { "resourceName" : "vcores", - "resourceValue" : 1 + "resourceValue" : "1.0" } ] }, "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1387,7 +1294,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1402,7 +1308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1410,7 +1315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1425,7 +1329,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1433,7 +1336,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1448,7 +1350,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1456,7 +1357,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1466,17 +1366,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1484,7 +1383,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1499,7 +1397,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1507,7 +1404,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1522,7 +1418,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1530,7 +1425,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1545,7 +1439,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1553,7 +1446,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1568,7 +1460,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1576,7 +1467,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1591,7 +1481,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1599,7 +1488,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1609,14 +1497,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1624,7 +1511,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1639,7 +1525,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1647,7 +1532,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1662,7 +1546,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1670,7 +1553,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1695,29 +1577,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 312, "maxApplicationsPerUser" : 312, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1725,7 +1606,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1740,7 +1620,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1748,7 +1627,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1763,7 +1641,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1771,7 +1648,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1790,7 +1666,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1802,21 +1678,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 32768, "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1824,7 +1699,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1839,7 +1713,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1847,7 +1720,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1862,7 +1734,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1870,7 +1741,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1885,7 +1755,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1893,7 +1762,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1903,7 +1771,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -1936,7 +1804,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1944,7 +1811,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1962,7 +1828,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1970,7 +1835,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1988,7 +1852,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1996,7 +1859,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2013,7 +1875,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2021,7 +1882,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2049,9 +1909,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/configmutation-absolute-hierarchy-legacy-before-update.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-legacy-before-update.json index b58ba19e6c685..0e597b84b3e87 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-legacy-before-update.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/configmutation-absolute-hierarchy-legacy-before-update.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -24,14 +24,14 @@ "queues" : { "queue" : [ { "queuePath" : "root.a", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "a", @@ -39,16 +39,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.b", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "b", @@ -59,7 +59,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -67,7 +66,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -78,38 +76,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -117,7 +114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -132,7 +128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -140,7 +135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -155,7 +149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -163,7 +156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -178,7 +170,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -186,7 +177,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -196,17 +186,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -214,7 +203,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -229,7 +217,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -237,7 +224,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -252,7 +238,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -260,7 +245,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -275,7 +259,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -283,7 +266,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -298,7 +280,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -306,7 +287,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -321,7 +301,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -329,7 +308,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -339,14 +317,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -354,7 +331,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -369,7 +345,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -377,7 +352,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -392,7 +366,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -400,7 +373,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -425,29 +397,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -455,7 +426,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -470,7 +440,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -478,7 +447,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -493,7 +461,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -501,7 +468,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -518,16 +484,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a.c", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "c", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1003,7 +935,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1011,7 +942,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1022,38 +952,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=0.0,vcores=0.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 0 + "resourceValue" : "0.0" }, { "resourceName" : "vcores", - "resourceValue" : 0 + "resourceValue" : "0.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1061,7 +990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1076,7 +1004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1084,7 +1011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1099,7 +1025,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1107,7 +1032,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1122,7 +1046,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1130,7 +1053,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1140,17 +1062,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1158,7 +1079,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1173,7 +1093,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1181,7 +1100,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1196,7 +1114,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1204,7 +1121,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1214,14 +1130,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1229,7 +1144,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1244,7 +1158,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1252,7 +1165,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1267,7 +1179,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1275,7 +1186,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1300,25 +1210,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -1329,7 +1239,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1337,7 +1246,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1348,38 +1256,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1024.0,vcores=1.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 1024 + "resourceValue" : "1024.0" }, { "resourceName" : "vcores", - "resourceValue" : 1 + "resourceValue" : "1.0" } ] }, "capacity" : 3.125, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 3.125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1387,7 +1294,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1402,7 +1308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1410,7 +1315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1425,7 +1329,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1433,7 +1336,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1448,7 +1350,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1456,7 +1357,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1466,17 +1366,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1484,7 +1383,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1499,7 +1397,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1507,7 +1404,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1522,7 +1418,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1530,7 +1425,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1545,7 +1439,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1553,7 +1446,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1568,7 +1460,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1576,7 +1467,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1591,7 +1481,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1599,7 +1488,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1609,14 +1497,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1624,7 +1511,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1639,7 +1525,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1647,7 +1532,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1662,7 +1546,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1670,7 +1553,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1695,29 +1577,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 312, "maxApplicationsPerUser" : 312, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1725,7 +1606,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1740,7 +1620,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1748,7 +1627,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1763,7 +1641,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1771,7 +1648,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1790,7 +1666,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1802,21 +1678,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 32768, "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1824,7 +1699,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1839,7 +1713,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1847,7 +1720,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1862,7 +1734,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1870,7 +1741,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1885,7 +1755,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1893,7 +1762,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1903,7 +1771,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -1936,7 +1804,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1944,7 +1811,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1962,7 +1828,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1970,7 +1835,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1988,7 +1852,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1996,7 +1859,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2013,7 +1875,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2021,7 +1882,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2049,9 +1909,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testAbsoluteMode-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-0.json index fb3fe99950ce4..7ffe0318dfb77 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,38 +60,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4096.0,vcores=4.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 4096 + "resourceValue" : "4096.0" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,38 +2146,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testAbsoluteMode-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-16.json index edbe4e62f602e..e3c441463a370 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,38 +60,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4096.0,vcores=4.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 4096 + "resourceValue" : "4096.0" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 8192, "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,38 +2146,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testAbsoluteMode-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-32.json index b97bfdb2e38a0..e7e605ad68e68 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,38 +60,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4096.0,vcores=4.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 4096 + "resourceValue" : "4096.0" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,38 +2146,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testAbsoluteMode-legacy-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-legacy-0.json index 8c3130d473b28..3cd78a1b7b0f7 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-legacy-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testAbsoluteMode-legacy-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 0, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,38 +60,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4096.0,vcores=4.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 4096 + "resourceValue" : "4096.0" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 0, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 0, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 0, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 0, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 0, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,38 +2146,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testPercentageMode-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-0.json index e481e20ca287a..7febd32875778 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -79,21 +77,20 @@ "resourceValue" : "12.5%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -574,21 +538,20 @@ "resourceValue" : "12.5%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -1053,21 +983,20 @@ "resourceValue" : "12.5%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -1532,21 +1428,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1997,21 +1859,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=37.5%,vcores=37.5%]", @@ -2323,21 +2163,20 @@ "resourceValue" : "37.5%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testPercentageMode-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-16.json index f0845cada043b..c1a4eed4cf9be 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -1532,21 +1428,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1997,21 +1859,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 8192, "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=37.5%,vcores=37.5%]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testPercentageMode-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-32.json index 8dfd8e726ed51..be45d10c04fbf 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -1532,21 +1428,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1997,21 +1859,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=37.5%,vcores=37.5%]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testPercentageMode-legacy-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-legacy-0.json index 871e2b7287694..94c7381604c8d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-legacy-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testPercentageMode-legacy-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -1532,21 +1428,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1997,21 +1859,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=37.5%,vcores=37.5%]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-0.json index 5243af74bd252..12cd076033233 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "4.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -574,21 +538,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1053,21 +983,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-16.json index b4247fc119fe6..3669ab08a262a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 8192, "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-32.json index f3234b3a071c1..824448edb4a78 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-after-aqc.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-after-aqc.json index 372bf4386c499..cbbe4fd267cf2 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-after-aqc.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-after-aqc.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,24 +2100,24 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", @@ -2283,16 +2125,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.auto1", "capacity" : 41.666664, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 10, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 10.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto1", @@ -2303,7 +2145,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2311,7 +2152,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2322,12 +2162,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=10.0w,vcores=10.0w]", @@ -2340,20 +2180,19 @@ } ] }, "capacity" : 41.666664, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 10, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 10.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2361,7 +2200,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2376,7 +2214,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2384,7 +2221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2399,7 +2235,6 @@ "vCores" : 5, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2407,7 +2242,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2422,7 +2256,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2430,7 +2263,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2440,17 +2272,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2458,7 +2289,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2473,7 +2303,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2481,7 +2310,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2496,7 +2324,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2504,7 +2331,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2519,7 +2345,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2527,7 +2352,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2542,7 +2366,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2550,7 +2373,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2565,7 +2387,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2573,7 +2394,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2583,14 +2403,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 5120, "vCores" : 5, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2598,7 +2417,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2613,7 +2431,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2621,7 +2438,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2636,7 +2452,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2644,7 +2459,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2669,29 +2483,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1562, "maxApplicationsPerUser" : 1562, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2699,7 +2512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2714,7 +2526,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2722,7 +2533,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2737,7 +2547,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2745,7 +2554,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2762,16 +2570,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.auto2", "capacity" : 41.666664, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 10, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 10.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto2", @@ -2782,7 +2590,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2790,7 +2597,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2801,12 +2607,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=10.0w,vcores=10.0w]", @@ -2819,20 +2625,19 @@ } ] }, "capacity" : 41.666664, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 10, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 10.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2840,7 +2645,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2855,7 +2659,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2863,7 +2666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2878,7 +2680,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2886,7 +2687,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2901,7 +2701,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2909,7 +2708,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2919,17 +2717,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2937,7 +2734,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2952,7 +2748,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2960,7 +2755,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2975,7 +2769,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2983,7 +2776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2998,7 +2790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3006,7 +2797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3021,7 +2811,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3029,7 +2818,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3044,7 +2832,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3052,7 +2839,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3062,14 +2848,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 5120, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3077,7 +2862,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3092,7 +2876,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3100,7 +2883,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3115,7 +2897,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3123,7 +2904,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3148,29 +2928,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1562, "maxApplicationsPerUser" : 1562, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3178,7 +2957,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3193,7 +2971,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3201,7 +2978,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3216,7 +2992,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3224,7 +2999,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3243,13 +3017,13 @@ }, { "queuePath" : "root.test2.autoParent1", "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "autoParent1", @@ -3257,16 +3031,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.autoParent1.auto4", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto4", @@ -3277,7 +3051,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3285,7 +3058,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3296,12 +3068,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -3313,21 +3085,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3335,7 +3106,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3350,7 +3120,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3358,7 +3127,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3373,7 +3141,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3381,7 +3148,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3396,7 +3162,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3404,7 +3169,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3414,17 +3178,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3432,7 +3195,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3447,7 +3209,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3455,7 +3216,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3470,7 +3230,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3478,7 +3237,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3493,7 +3251,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3501,7 +3258,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3516,7 +3272,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3524,7 +3279,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3539,7 +3293,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3547,7 +3300,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3557,14 +3309,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 256, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3572,7 +3323,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3587,7 +3337,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3595,7 +3344,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3610,7 +3358,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3618,7 +3365,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3643,29 +3389,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 300, "maxApplicationsPerUser" : 300, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3673,7 +3418,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3688,7 +3432,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3696,7 +3439,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3711,7 +3453,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3719,7 +3460,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3736,16 +3476,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.autoParent1.auto3", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto3", @@ -3756,7 +3496,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3764,7 +3503,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3775,12 +3513,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -3792,21 +3530,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3814,7 +3551,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3829,7 +3565,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3837,7 +3572,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3852,7 +3586,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3860,7 +3593,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3875,7 +3607,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3883,7 +3614,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3893,17 +3623,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3911,7 +3640,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3926,7 +3654,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3934,7 +3661,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3949,7 +3675,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3957,7 +3682,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3972,7 +3696,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3980,7 +3703,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3995,7 +3717,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4003,7 +3724,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4018,7 +3738,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4026,7 +3745,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4036,14 +3754,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 256, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4051,7 +3768,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4066,7 +3782,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4074,7 +3789,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4089,7 +3803,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4097,7 +3810,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4122,29 +3834,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 300, "maxApplicationsPerUser" : 300, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4152,7 +3863,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4167,7 +3877,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4175,7 +3884,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4190,7 +3898,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4198,7 +3905,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4221,7 +3927,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4229,7 +3934,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4240,12 +3944,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -4258,20 +3962,19 @@ } ] }, "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4279,7 +3982,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4294,7 +3996,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4302,7 +4003,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4317,7 +4017,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4325,7 +4024,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4340,7 +4038,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4348,7 +4045,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4358,17 +4054,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4376,7 +4071,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4391,7 +4085,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4399,7 +4092,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4414,7 +4106,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4422,7 +4113,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4432,14 +4122,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4447,7 +4136,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4462,7 +4150,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4470,7 +4157,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4485,7 +4171,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4493,7 +4178,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4518,18 +4202,18 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", "autoQueueTemplateProperties" : { - "property" : { + "property" : [ { "name" : "maximum-applications", - "value" : 300 - } + "value" : "300" + } ] }, - "autoQueueParentTemplateProperties" : "", + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -4542,30 +4226,30 @@ }, { "queuePath" : "root.test2.autoParent2", "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "autoParent2", "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "queue" : [ { + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.autoParent2.auto5", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto5", @@ -4576,7 +4260,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4584,7 +4267,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4595,12 +4277,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -4612,21 +4294,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4634,7 +4315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4649,7 +4329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4657,7 +4336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4672,7 +4350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4680,7 +4357,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4695,7 +4371,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4703,7 +4378,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4713,17 +4387,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4731,7 +4404,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4746,7 +4418,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4754,7 +4425,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4769,7 +4439,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4777,7 +4446,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4792,7 +4460,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4800,7 +4467,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4815,7 +4481,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4823,7 +4488,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4838,7 +4502,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4846,7 +4509,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4856,14 +4518,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4871,7 +4532,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4886,7 +4546,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4894,7 +4553,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4909,7 +4567,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4917,7 +4574,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4942,29 +4598,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 156, "maxApplicationsPerUser" : 156, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4972,7 +4627,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4987,7 +4641,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4995,7 +4648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5010,7 +4662,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5018,7 +4669,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5034,14 +4684,13 @@ "isAutoCreatedLeafQueue" : false, "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5049,7 +4698,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5060,12 +4708,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -5078,20 +4726,19 @@ } ] }, "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5099,7 +4746,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5114,7 +4760,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5122,7 +4767,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5137,7 +4781,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5145,7 +4788,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5160,7 +4802,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5168,7 +4809,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5178,17 +4818,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5196,7 +4835,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5211,7 +4849,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5219,7 +4856,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5234,7 +4870,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5242,7 +4877,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5252,14 +4886,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5267,7 +4900,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5282,7 +4914,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5290,7 +4921,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5305,7 +4935,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5313,7 +4942,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5338,13 +4966,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -5357,30 +4985,30 @@ }, { "queuePath" : "root.test2.parent2", "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "parent2", "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "queue" : [ { + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.parent2.auto7", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto7", @@ -5391,7 +5019,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5399,7 +5026,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5410,12 +5036,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -5427,21 +5053,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5449,7 +5074,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5464,7 +5088,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5472,7 +5095,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5487,7 +5109,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5495,7 +5116,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5510,7 +5130,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5518,7 +5137,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5528,17 +5146,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5546,7 +5163,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5561,7 +5177,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5569,7 +5184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5584,7 +5198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5592,7 +5205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5607,7 +5219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5615,7 +5226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5630,7 +5240,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5638,7 +5247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5653,7 +5261,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5661,7 +5268,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5671,14 +5277,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5686,7 +5291,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5701,7 +5305,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5709,7 +5312,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5724,7 +5326,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5732,7 +5333,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5757,29 +5357,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 156, "maxApplicationsPerUser" : 156, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5787,7 +5386,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5802,7 +5400,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5810,7 +5407,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5825,7 +5421,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5833,7 +5428,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5849,14 +5443,13 @@ "isAutoCreatedLeafQueue" : false, "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5864,7 +5457,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5875,12 +5467,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -5893,20 +5485,19 @@ } ] }, "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5914,7 +5505,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5929,7 +5519,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5937,7 +5526,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5952,7 +5540,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5960,7 +5547,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5975,7 +5561,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5983,7 +5568,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5993,17 +5577,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6011,7 +5594,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6026,7 +5608,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6034,7 +5615,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6049,7 +5629,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6057,7 +5636,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6067,14 +5645,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6082,7 +5659,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6097,7 +5673,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6105,7 +5680,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6120,7 +5694,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6128,7 +5701,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6153,13 +5725,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -6172,46 +5744,46 @@ }, { "queuePath" : "root.test2.parent", "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "parent", "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { + "queue" : [ { "queuePath" : "root.test2.parent.autoParent2", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "autoParent2", "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "queue" : [ { + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.parent.autoParent2.auto6", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto6", @@ -6222,7 +5794,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6230,7 +5801,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6241,12 +5811,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -6258,21 +5828,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6280,7 +5849,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6295,7 +5863,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6303,7 +5870,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6318,7 +5884,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6326,7 +5891,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6341,7 +5905,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6349,7 +5912,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6359,17 +5921,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6377,7 +5938,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6392,7 +5952,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6400,7 +5959,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6415,7 +5973,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6423,7 +5980,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6438,7 +5994,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6446,7 +6001,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6461,7 +6015,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6469,7 +6022,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6484,7 +6036,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6492,7 +6043,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6502,14 +6052,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6517,7 +6066,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6532,7 +6080,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6540,7 +6087,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6555,7 +6101,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6563,7 +6108,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6588,29 +6132,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 156, "maxApplicationsPerUser" : 156, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6618,7 +6161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6633,7 +6175,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6641,7 +6182,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6656,7 +6196,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6664,7 +6203,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6680,14 +6218,13 @@ "isAutoCreatedLeafQueue" : false, "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6695,7 +6232,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6706,12 +6242,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -6723,21 +6259,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6745,7 +6280,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6760,7 +6294,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6768,7 +6301,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6783,7 +6315,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6791,7 +6322,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6806,7 +6336,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6814,7 +6343,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6824,17 +6352,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6842,7 +6369,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6857,7 +6383,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6865,7 +6390,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6880,7 +6404,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6888,7 +6411,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6898,14 +6420,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6913,7 +6434,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6928,7 +6448,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6936,7 +6455,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6951,7 +6469,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6959,7 +6476,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6984,13 +6500,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -7000,14 +6516,13 @@ "value" : "pLeafUser" } ] } - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7015,7 +6530,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7026,12 +6540,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -7044,20 +6558,19 @@ } ] }, "capacity" : 4.166667, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7065,7 +6578,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7080,7 +6592,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7088,7 +6599,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7103,7 +6613,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7111,7 +6620,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7126,7 +6634,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7134,7 +6641,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7144,17 +6650,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7162,7 +6667,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7177,7 +6681,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7185,7 +6688,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7200,7 +6702,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7208,7 +6709,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7218,14 +6718,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7233,7 +6732,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7248,7 +6746,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7256,7 +6753,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7271,7 +6767,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7279,7 +6774,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7304,13 +6798,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -7327,7 +6821,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7335,7 +6828,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7346,12 +6838,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -7364,20 +6856,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7385,7 +6876,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7400,7 +6890,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7408,7 +6897,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7423,7 +6911,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7431,7 +6918,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7446,7 +6932,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7454,7 +6939,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7464,17 +6948,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7482,7 +6965,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7497,7 +6979,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7505,7 +6986,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7520,7 +7000,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7528,7 +7007,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7538,14 +7016,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7553,7 +7030,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7568,7 +7044,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7576,7 +7051,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7591,7 +7065,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7599,7 +7072,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7624,12 +7096,12 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, "autoQueueParentTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -7640,15 +7112,15 @@ } ] }, "autoQueueLeafTemplateProperties" : { - "property" : { + "property" : [ { "name" : "capacity", "value" : "10w" - } + } ] } } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -7660,21 +7132,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7682,7 +7153,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7697,7 +7167,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7705,7 +7174,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7720,7 +7188,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7728,7 +7195,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7743,7 +7209,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7751,7 +7216,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7761,7 +7225,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -7794,7 +7258,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7802,7 +7265,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7820,7 +7282,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7828,7 +7289,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7846,7 +7306,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7854,7 +7313,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7871,7 +7329,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7879,7 +7336,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7907,9 +7363,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-before-aqc.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-before-aqc.json index 0e52ca542f800..2bee584371733 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-before-aqc.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-before-aqc.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,36 +2100,35 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { "queuePath" : "root.test2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", "isAbsoluteResource" : false, "state" : "RUNNING", - "queues" : "", + "queues" : { }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 12, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 12.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2498,14 +2324,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2513,7 +2338,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2528,7 +2352,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2536,7 +2359,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2551,7 +2373,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2559,7 +2380,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2584,12 +2404,12 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, "autoQueueParentTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -2600,15 +2420,15 @@ } ] }, "autoQueueLeafTemplateProperties" : { - "property" : { + "property" : [ { "name" : "capacity", "value" : "10w" - } + } ] } } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2620,21 +2440,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2642,7 +2461,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2657,7 +2475,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2665,7 +2482,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2680,7 +2496,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2688,7 +2503,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2703,7 +2517,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2711,7 +2524,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2533,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2754,7 +2566,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2762,7 +2573,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2780,7 +2590,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2788,7 +2597,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2806,7 +2614,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2814,7 +2621,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2831,7 +2637,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2839,7 +2644,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2867,9 +2671,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-legacy-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-0.json index dab6776aa1862..3efd7d2615732 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,15 +23,15 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "4.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,13 +469,13 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -518,15 +484,15 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -574,21 +538,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,15 +929,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1053,21 +983,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,15 +1374,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,24 +2100,24 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-legacy-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-16.json index 6689b4434f814..d4cddc63e436f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,15 +23,15 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "4.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,13 +469,13 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -518,15 +484,15 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -574,21 +538,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,15 +929,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1053,21 +983,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,15 +1374,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 8192, "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,24 +2100,24 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-legacy-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-32.json index a7b9416c3fab7..a793351cdb714 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,15 +23,15 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "4.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,13 +469,13 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -518,15 +484,15 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -574,21 +538,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,15 +929,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1053,21 +983,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,15 +1374,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,24 +2100,24 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-legacy-after-aqc.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-after-aqc.json index 7c31c8650f153..e1a9407652d68 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-after-aqc.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-after-aqc.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,15 +23,15 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "4.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,13 +469,13 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -518,15 +484,15 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -574,21 +538,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,15 +929,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1053,21 +983,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,15 +1374,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,23 +2100,23 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -2283,15 +2125,15 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.auto1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 10, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 10.0, "normalizedWeight" : 0.41666666, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -2303,7 +2145,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2311,7 +2152,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2322,12 +2162,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=10.0w,vcores=10.0w]", @@ -2339,21 +2179,20 @@ "resourceValue" : "10.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 10, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 10.0, "normalizedWeight" : 0.41666666, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2361,7 +2200,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2376,7 +2214,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2384,7 +2221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2399,7 +2235,6 @@ "vCores" : 5, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2407,7 +2242,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2422,7 +2256,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2430,7 +2263,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2440,17 +2272,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2458,7 +2289,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2473,7 +2303,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2481,7 +2310,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2496,7 +2324,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2504,7 +2331,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2519,7 +2345,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2527,7 +2352,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2542,7 +2366,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2550,7 +2373,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2565,7 +2387,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2573,7 +2394,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2583,14 +2403,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 5120, "vCores" : 5, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2598,7 +2417,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2613,7 +2431,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2621,7 +2438,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2636,7 +2452,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2644,7 +2459,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2669,29 +2483,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1562, "maxApplicationsPerUser" : 1562, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2699,7 +2512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2714,7 +2526,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2722,7 +2533,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2737,7 +2547,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2745,7 +2554,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2762,15 +2570,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.auto2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 10, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 10.0, "normalizedWeight" : 0.41666666, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -2782,7 +2590,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2790,7 +2597,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2801,12 +2607,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=10.0w,vcores=10.0w]", @@ -2818,21 +2624,20 @@ "resourceValue" : "10.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 15.625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 10, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 10.0, "normalizedWeight" : 0.41666666, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2840,7 +2645,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2855,7 +2659,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2863,7 +2666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2878,7 +2680,6 @@ "vCores" : 5, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2886,7 +2687,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2901,7 +2701,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2909,7 +2708,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2919,17 +2717,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2937,7 +2734,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2952,7 +2748,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2960,7 +2755,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2975,7 +2769,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2983,7 +2776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2998,7 +2790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3006,7 +2797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3021,7 +2811,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3029,7 +2818,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3044,7 +2832,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3052,7 +2839,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3062,14 +2848,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 5120, "vCores" : 5, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3077,7 +2862,6 @@ "units" : "Mi", "value" : 5120 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3092,7 +2876,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3100,7 +2883,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3115,7 +2897,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3123,7 +2904,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3148,29 +2928,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1562, "maxApplicationsPerUser" : 1562, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3178,7 +2957,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3193,7 +2971,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3201,7 +2978,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3216,7 +2992,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3224,7 +2999,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3242,13 +3016,13 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test2.autoParent1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -3257,15 +3031,15 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.autoParent1.auto4", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.5, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -3277,7 +3051,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3285,7 +3058,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3296,12 +3068,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -3313,21 +3085,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, "normalizedWeight" : 0.5, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3335,7 +3106,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3350,7 +3120,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3358,7 +3127,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3373,7 +3141,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3381,7 +3148,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3396,7 +3162,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3404,7 +3169,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3414,17 +3178,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3432,7 +3195,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3447,7 +3209,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3455,7 +3216,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3470,7 +3230,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3478,7 +3237,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3493,7 +3251,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3501,7 +3258,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3516,7 +3272,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3524,7 +3279,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3539,7 +3293,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3547,7 +3300,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3557,14 +3309,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 256, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3572,7 +3323,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3587,7 +3337,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3595,7 +3344,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3610,7 +3358,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3618,7 +3365,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3643,29 +3389,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 300, "maxApplicationsPerUser" : 300, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3673,7 +3418,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3688,7 +3432,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3696,7 +3439,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3711,7 +3453,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3719,7 +3460,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3736,15 +3476,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.autoParent1.auto3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.5, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -3756,7 +3496,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3764,7 +3503,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3775,12 +3513,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -3792,21 +3530,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 0.78125, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, "normalizedWeight" : 0.5, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3814,7 +3551,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3829,7 +3565,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -3837,7 +3572,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -3852,7 +3586,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3860,7 +3593,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3875,7 +3607,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3883,7 +3614,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3893,17 +3623,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3911,7 +3640,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3926,7 +3654,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3934,7 +3661,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3949,7 +3675,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3957,7 +3682,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3972,7 +3696,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -3980,7 +3703,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3995,7 +3717,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4003,7 +3724,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4018,7 +3738,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4026,7 +3745,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4036,14 +3754,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 256, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4051,7 +3768,6 @@ "units" : "Mi", "value" : 256 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4066,7 +3782,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4074,7 +3789,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4089,7 +3803,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4097,7 +3810,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4122,29 +3834,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 300, "maxApplicationsPerUser" : 300, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4152,7 +3863,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4167,7 +3877,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4175,7 +3884,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4190,7 +3898,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4198,7 +3905,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4221,7 +3927,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4229,7 +3934,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4240,12 +3944,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -4257,21 +3961,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4279,7 +3982,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4294,7 +3996,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4302,7 +4003,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4317,7 +4017,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4325,7 +4024,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4340,7 +4038,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4348,7 +4045,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4358,17 +4054,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4376,7 +4071,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4391,7 +4085,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4399,7 +4092,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4414,7 +4106,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4422,7 +4113,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4432,14 +4122,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4447,7 +4136,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4462,7 +4150,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4470,7 +4157,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4485,7 +4171,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4493,7 +4178,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4518,18 +4202,18 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", "autoQueueTemplateProperties" : { - "property" : { + "property" : [ { "name" : "maximum-applications", - "value" : 300 - } + "value" : "300" + } ] }, - "autoQueueParentTemplateProperties" : "", + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -4541,13 +4225,13 @@ } }, { "queuePath" : "root.test2.autoParent2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -4555,17 +4239,17 @@ "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "queue" : [ { + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.autoParent2.auto5", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto5", @@ -4576,7 +4260,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4584,7 +4267,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4595,12 +4277,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -4612,21 +4294,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4634,7 +4315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4649,7 +4329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -4657,7 +4336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -4672,7 +4350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4680,7 +4357,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4695,7 +4371,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4703,7 +4378,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4713,17 +4387,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4731,7 +4404,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4746,7 +4418,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4754,7 +4425,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4769,7 +4439,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4777,7 +4446,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4792,7 +4460,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4800,7 +4467,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4815,7 +4481,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4823,7 +4488,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4838,7 +4502,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4846,7 +4509,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4856,14 +4518,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4871,7 +4532,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4886,7 +4546,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4894,7 +4553,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4909,7 +4567,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4917,7 +4574,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4942,29 +4598,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 156, "maxApplicationsPerUser" : 156, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4972,7 +4627,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -4987,7 +4641,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -4995,7 +4648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5010,7 +4662,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5018,7 +4669,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5034,14 +4684,13 @@ "isAutoCreatedLeafQueue" : false, "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5049,7 +4698,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5060,12 +4708,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -5077,21 +4725,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5099,7 +4746,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5114,7 +4760,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5122,7 +4767,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5137,7 +4781,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5145,7 +4788,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5160,7 +4802,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5168,7 +4809,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5178,17 +4818,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5196,7 +4835,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5211,7 +4849,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5219,7 +4856,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5234,7 +4870,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5242,7 +4877,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5252,14 +4886,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5267,7 +4900,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5282,7 +4914,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5290,7 +4921,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5305,7 +4935,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5313,7 +4942,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5338,13 +4966,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -5356,13 +4984,13 @@ } }, { "queuePath" : "root.test2.parent2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -5370,17 +4998,17 @@ "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "queue" : [ { + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.parent2.auto7", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto7", @@ -5391,7 +5019,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5399,7 +5026,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5410,12 +5036,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -5427,21 +5053,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5449,7 +5074,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5464,7 +5088,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5472,7 +5095,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5487,7 +5109,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5495,7 +5116,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5510,7 +5130,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5518,7 +5137,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5528,17 +5146,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5546,7 +5163,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5561,7 +5177,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5569,7 +5184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5584,7 +5198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5592,7 +5205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5607,7 +5219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5615,7 +5226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5630,7 +5240,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5638,7 +5247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5653,7 +5261,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5661,7 +5268,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5671,14 +5277,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5686,7 +5291,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5701,7 +5305,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5709,7 +5312,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5724,7 +5326,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5732,7 +5333,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5757,29 +5357,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 156, "maxApplicationsPerUser" : 156, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5787,7 +5386,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5802,7 +5400,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5810,7 +5407,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5825,7 +5421,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5833,7 +5428,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5849,14 +5443,13 @@ "isAutoCreatedLeafQueue" : false, "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5864,7 +5457,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5875,12 +5467,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -5892,21 +5484,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5914,7 +5505,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5929,7 +5519,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -5937,7 +5526,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -5952,7 +5540,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5960,7 +5547,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5975,7 +5561,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -5983,7 +5568,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -5993,17 +5577,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6011,7 +5594,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6026,7 +5608,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6034,7 +5615,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6049,7 +5629,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6057,7 +5636,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6067,14 +5645,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6082,7 +5659,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6097,7 +5673,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6105,7 +5680,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6120,7 +5694,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6128,7 +5701,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6153,13 +5725,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -6171,13 +5743,13 @@ } }, { "queuePath" : "root.test2.parent", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -6185,33 +5757,33 @@ "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { + "queue" : [ { "queuePath" : "root.test2.parent.autoParent2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "autoParent2", "isAbsoluteResource" : false, "state" : "RUNNING", "queues" : { - "queue" : { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "queue" : [ { + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test2.parent.autoParent2.auto6", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "auto6", @@ -6222,7 +5794,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6230,7 +5801,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6241,12 +5811,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -6258,21 +5828,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 100, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 100.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6280,7 +5849,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6295,7 +5863,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6303,7 +5870,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6318,7 +5884,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6326,7 +5891,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6341,7 +5905,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6349,7 +5912,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6359,17 +5921,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6377,7 +5938,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6392,7 +5952,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6400,7 +5959,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6415,7 +5973,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6423,7 +5980,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6438,7 +5994,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6446,7 +6001,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6461,7 +6015,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6469,7 +6022,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6484,7 +6036,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6492,7 +6043,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6502,14 +6052,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6517,7 +6066,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6532,7 +6080,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6540,7 +6087,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6555,7 +6101,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6563,7 +6108,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6588,29 +6132,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 156, "maxApplicationsPerUser" : 156, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : -1, - "configuredMaxAMResourceLimit" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : -1.0, + "configuredMaxAMResourceLimit" : 1.0, "AMResourceLimit" : { "memory" : 32768, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6618,7 +6161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6633,7 +6175,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6641,7 +6182,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6656,7 +6196,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6664,7 +6203,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6680,14 +6218,13 @@ "isAutoCreatedLeafQueue" : false, "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6695,7 +6232,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6706,12 +6242,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -6723,21 +6259,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, - "normalizedWeight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 1.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6745,7 +6280,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6760,7 +6294,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -6768,7 +6301,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -6783,7 +6315,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6791,7 +6322,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6806,7 +6336,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6814,7 +6343,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6824,17 +6352,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6842,7 +6369,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6857,7 +6383,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6865,7 +6390,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6880,7 +6404,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6888,7 +6411,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6898,14 +6420,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6913,7 +6434,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6928,7 +6448,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6936,7 +6455,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6951,7 +6469,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -6959,7 +6476,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -6984,13 +6500,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -7000,14 +6516,13 @@ "value" : "pLeafUser" } ] } - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7015,7 +6530,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7026,12 +6540,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -7043,21 +6557,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 1.5625, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 1, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 1.0, "normalizedWeight" : 0.041666668, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7065,7 +6578,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7080,7 +6592,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7088,7 +6599,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7103,7 +6613,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7111,7 +6620,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7126,7 +6634,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7134,7 +6641,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7144,17 +6650,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7162,7 +6667,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7177,7 +6681,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7185,7 +6688,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7200,7 +6702,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7208,7 +6709,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7218,14 +6718,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 512, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7233,7 +6732,6 @@ "units" : "Mi", "value" : 512 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7248,7 +6746,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7256,7 +6753,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7271,7 +6767,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7279,7 +6774,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7304,13 +6798,13 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "dynamicFlexible", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, "autoQueueLeafTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -7327,7 +6821,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7335,7 +6828,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7346,12 +6838,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -7363,21 +6855,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7385,7 +6876,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7400,7 +6890,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7408,7 +6897,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7423,7 +6911,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7431,7 +6918,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7446,7 +6932,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7454,7 +6939,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7464,17 +6948,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7482,7 +6965,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7497,7 +6979,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7505,7 +6986,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7520,7 +7000,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7528,7 +7007,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7538,14 +7016,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7553,7 +7030,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7568,7 +7044,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7576,7 +7051,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7591,7 +7065,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7599,7 +7072,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7624,12 +7096,12 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, "autoQueueParentTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -7640,15 +7112,15 @@ } ] }, "autoQueueLeafTemplateProperties" : { - "property" : { + "property" : [ { "name" : "capacity", "value" : "10w" - } + } ] } } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -7660,21 +7132,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7682,7 +7153,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7697,7 +7167,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -7705,7 +7174,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -7720,7 +7188,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7728,7 +7195,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7743,7 +7209,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7751,7 +7216,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7761,7 +7225,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -7794,7 +7258,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7802,7 +7265,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7820,7 +7282,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7828,7 +7289,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7846,7 +7306,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7854,7 +7313,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7871,7 +7329,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -7879,7 +7336,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -7907,9 +7363,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/dynamic-testWeightMode-legacy-before-aqc.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-before-aqc.json index 011c9c730120a..ef0a6d5d9e421 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-before-aqc.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/dynamic-testWeightMode-legacy-before-aqc.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,15 +23,15 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 4, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4.0w,vcores=4.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "4.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 4, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 4.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,13 +469,13 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -518,15 +484,15 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -574,21 +538,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,15 +929,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 2, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2.0w,vcores=2.0w]", @@ -1053,21 +983,20 @@ "resourceValue" : "2.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 2, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 2.0, "normalizedWeight" : 0.125, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,15 +1374,15 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test1.test1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "numApplications" : 0, "maxParallelApps" : 2147483647, @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 12.0, "normalizedWeight" : 0.75, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16.0w,vcores=16.0w]", @@ -1997,21 +1859,20 @@ "resourceValue" : "16.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 16, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 16.0, "normalizedWeight" : 0.5, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,36 +2100,35 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { "queuePath" : "root.test2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 12, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test2", "isAbsoluteResource" : false, "state" : "RUNNING", - "queues" : "", + "queues" : { }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.0w,vcores=12.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "12.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : 12, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : 12.0, "normalizedWeight" : 0.375, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2498,14 +2324,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2513,7 +2338,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2528,7 +2352,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2536,7 +2359,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2551,7 +2373,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2559,7 +2380,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2584,12 +2404,12 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "flexible", - "autoQueueTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, "autoQueueParentTemplateProperties" : { "property" : [ { "name" : "acl_administer_queue", @@ -2600,15 +2420,15 @@ } ] }, "autoQueueLeafTemplateProperties" : { - "property" : { + "property" : [ { "name" : "capacity", "value" : "10w" - } + } ] } } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2620,21 +2440,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2642,7 +2461,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2657,7 +2475,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2665,7 +2482,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2680,7 +2496,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2688,7 +2503,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2703,7 +2517,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2711,7 +2524,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2533,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2754,7 +2566,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2762,7 +2573,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2780,7 +2590,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2788,7 +2597,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2806,7 +2614,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2814,7 +2621,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2831,7 +2637,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2839,7 +2644,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2867,9 +2671,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentage-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-0.json index c90f04d2fc7c2..54354b01a4411 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=25.0%,vcores=25.0%]", @@ -79,21 +77,20 @@ "resourceValue" : "25.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1532,21 +1428,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -2323,21 +2163,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentage-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-16.json index aa1c481ed90f0..c23f12b6106c2 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=25.0%,vcores=25.0%]", @@ -79,21 +77,20 @@ "resourceValue" : "25.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1532,21 +1428,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 7500, "maxApplicationsPerUser" : 7500, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -2323,21 +2163,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentage-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-32.json index 9b43e390bc38c..9989542e32343 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentage-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=25.0%,vcores=25.0%]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1532,21 +1428,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentageAndWeight-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-0.json index 2296b1cdb51aa..838de2502b966 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -574,21 +538,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1053,21 +983,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -2323,21 +2163,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentageAndWeight-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-16.json index 8531661681640..5ee9cb537884d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 7500, "maxApplicationsPerUser" : 7500, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -2323,21 +2163,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentageAndWeight-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-32.json index b28ee360f0419..4252e599cd0b6 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeight-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=12.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-0.json index 73f3205cb9aa8..19468b959c7e1 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=4.0]", @@ -76,24 +74,23 @@ "resourceValue" : "1.0w" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -574,21 +538,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=2.0]", @@ -1050,24 +980,23 @@ "resourceValue" : "50.0%" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=86.0%]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", "resourceValue" : "86.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=100.0%]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", "resourceValue" : "100.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=12.0]", @@ -2320,24 +2160,23 @@ "resourceValue" : "3.0w" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-16.json index 79c9da11dc1ff..5de99c4c64a70 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=4.0]", @@ -76,24 +74,23 @@ "resourceValue" : "1.0w" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=2.0]", @@ -1050,24 +980,23 @@ "resourceValue" : "50.0%" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=86.0%]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", "resourceValue" : "86.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 7500, "maxApplicationsPerUser" : 7500, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=100.0%]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=12.0]", @@ -2320,24 +2160,23 @@ "resourceValue" : "3.0w" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-32.json index b30da4d6bde84..d07ba847c10d3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndPercentageAndWeightMixed-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=4.0]", @@ -76,24 +74,23 @@ "resourceValue" : "1.0w" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=2.0]", @@ -1050,24 +980,23 @@ "resourceValue" : "50.0%" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,38 +1411,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12288.0,vcores=86.0%]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 12288 + "resourceValue" : "12288.0" }, { "resourceName" : "vcores", "resourceValue" : "86.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=100.0%]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", "resourceValue" : "100.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=12.0]", @@ -2320,24 +2160,23 @@ "resourceValue" : "3.0w" }, { "resourceName" : "vcores", - "resourceValue" : 12 + "resourceValue" : "12.0" } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "mixed", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndWeight-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-0.json index 39993a2cfd0b9..08c6c081d406a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 3, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=3.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "3.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 3, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndWeight-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-16.json index 5adcec164ad05..7cb2f9082db41 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 7500, "maxApplicationsPerUser" : 7500, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 3, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=3.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "3.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 3, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 0, "maxApplicationsPerUser" : 0, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerAbsoluteAndWeight-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-32.json index cec8bac3dc91e..e397a61ea4439 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerAbsoluteAndWeight-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,38 +966,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,38 +1842,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=16384.0,vcores=16.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 16384 + "resourceValue" : "16384.0" }, { "resourceName" : "vcores", - "resourceValue" : 16 + "resourceValue" : "16.0" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 3, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=3.0w]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 3, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerPercentageAndWeight-0.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-0.json index ac936db74a912..1c50dfba44747 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-0.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-0.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -79,21 +77,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -574,21 +538,20 @@ "resourceValue" : "12.5%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -1053,21 +983,20 @@ "resourceValue" : "12.5%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1997,21 +1859,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 3, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=3.0w]", @@ -2323,21 +2163,20 @@ "resourceValue" : "3.0w" } ] }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 3, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 10000, "maxApplicationsPerUser" : 10000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerPercentageAndWeight-16.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-16.json index 3fd13811a47af..77d308db81757 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-16.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-16.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 1024, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1997,21 +1859,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 8192, "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 3, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=3.0w]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 3, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 6144, "vCores" : 6, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 6144 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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/mixed-testSchedulerPercentageAndWeight-32.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-32.json index d8d3409f8a319..a9d6b559c8ff0 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-32.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/mixed-testSchedulerPercentageAndWeight-32.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,14 +469,14 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.test_1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1", @@ -518,16 +484,16 @@ "state" : "RUNNING", "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_1", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,12 +521,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -575,20 +539,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -997,16 +929,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_2", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_2", @@ -1017,7 +949,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1025,7 +956,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1036,12 +966,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=12.5%,vcores=12.5%]", @@ -1054,20 +984,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1075,7 +1004,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1090,7 +1018,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1098,7 +1025,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1113,7 +1039,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1121,7 +1046,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1136,7 +1060,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1144,7 +1067,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1154,17 +1076,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1172,7 +1093,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1187,7 +1107,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1195,7 +1114,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1210,7 +1128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1218,7 +1135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1233,7 +1149,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1241,7 +1156,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1256,7 +1170,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1264,7 +1177,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1279,7 +1191,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1287,7 +1198,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1297,14 +1207,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1312,7 +1221,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1327,7 +1235,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1335,7 +1242,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1350,7 +1256,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1358,7 +1263,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1383,29 +1287,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1413,7 +1316,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1428,7 +1330,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1436,7 +1337,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1451,7 +1351,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1459,7 +1358,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1476,16 +1374,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_1.test_1_3", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_1_3", @@ -1496,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1515,12 +1411,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=1.0w,vcores=1.0w]", @@ -1532,21 +1428,20 @@ "resourceValue" : "1.0w" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1554,7 +1449,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1569,7 +1463,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1577,7 +1470,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1592,7 +1484,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1600,7 +1491,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1615,7 +1505,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1623,7 +1512,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1633,17 +1521,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1651,7 +1538,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1666,7 +1552,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1674,7 +1559,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1689,7 +1573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1697,7 +1580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1712,7 +1594,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1720,7 +1601,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1735,7 +1615,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1743,7 +1622,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1758,7 +1636,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1766,7 +1643,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1776,14 +1652,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1666,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1680,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1687,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1829,7 +1701,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1837,7 +1708,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1862,29 +1732,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1892,7 +1761,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1907,7 +1775,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1915,7 +1782,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1930,7 +1796,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1938,7 +1803,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1961,7 +1825,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1969,7 +1832,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1980,12 +1842,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1997,21 +1859,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2019,7 +1880,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2034,7 +1894,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2042,7 +1901,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2057,7 +1915,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2065,7 +1922,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2080,7 +1936,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2088,7 +1943,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,17 +1952,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2116,7 +1969,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2131,7 +1983,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2139,7 +1990,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2154,7 +2004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2162,7 +2011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2172,14 +2020,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2187,7 +2034,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2202,7 +2048,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2210,7 +2055,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2225,7 +2069,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2233,7 +2076,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2258,25 +2100,25 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.test_2", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : 3, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "test_2", @@ -2287,7 +2129,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2295,7 +2136,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2306,12 +2146,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=3.0w,vcores=3.0w]", @@ -2324,20 +2164,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : 3, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : 3.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2345,7 +2184,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2360,7 +2198,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2368,7 +2205,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2383,7 +2219,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2391,7 +2226,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2406,7 +2240,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2414,7 +2247,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2424,17 +2256,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2442,7 +2273,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2457,7 +2287,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2465,7 +2294,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2480,7 +2308,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2488,7 +2315,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2503,7 +2329,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2511,7 +2336,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2526,7 +2350,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2534,7 +2357,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2549,7 +2371,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2557,7 +2378,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2567,14 +2387,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2582,7 +2401,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2597,7 +2415,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2605,7 +2422,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2620,7 +2436,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2628,7 +2443,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2653,29 +2467,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "weight", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2683,7 +2496,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2698,7 +2510,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2706,7 +2517,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2721,7 +2531,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2729,7 +2538,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2748,7 +2556,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2760,21 +2568,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2782,7 +2589,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2797,7 +2603,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2805,7 +2610,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2820,7 +2624,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2828,7 +2631,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2843,7 +2645,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2851,7 +2652,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2861,7 +2661,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2894,7 +2694,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2902,7 +2701,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2920,7 +2718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2928,7 +2725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2946,7 +2742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2954,7 +2749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2971,7 +2765,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2979,7 +2772,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -3007,9 +2799,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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-AbsoluteModeLegacyAutoCreation.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-AbsoluteModeLegacyAutoCreation.json index 3095a9c406310..1f40c01356bc1 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-AbsoluteModeLegacyAutoCreation.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-AbsoluteModeLegacyAutoCreation.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", "capacity" : 87.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 87.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,38 +60,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=28672.0,vcores=28.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 28672 + "resourceValue" : "28672.0" }, { "resourceName" : "vcores", - "resourceValue" : 28 + "resourceValue" : "28.0" } ] }, "capacity" : 87.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 87.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 28672, "vCores" : 28, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 28672 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 28, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 28672 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 28672, "vCores" : 28, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 28672 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 8750, "maxApplicationsPerUser" : 8750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -504,30 +470,30 @@ }, { "queuePath" : "root.managed", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "managed", "isAbsoluteResource" : true, "state" : "RUNNING", "queues" : { - "queue" : { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "queue" : [ { + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.managed.queue1", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "queue1", @@ -538,7 +504,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -546,7 +511,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -557,38 +521,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=2048.0,vcores=2.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 2048 + "resourceValue" : "2048.0" }, { "resourceName" : "vcores", - "resourceValue" : 2 + "resourceValue" : "2.0" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 6.25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -596,7 +559,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -611,7 +573,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -619,7 +580,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -634,7 +594,6 @@ "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -642,7 +601,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -657,7 +615,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -665,7 +622,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -675,17 +631,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -693,7 +648,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -708,7 +662,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -716,7 +669,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -731,7 +683,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -739,7 +690,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -754,7 +704,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -762,7 +711,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -777,7 +725,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -785,7 +732,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -800,7 +746,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -808,7 +753,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -818,14 +762,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 2048, "vCores" : 2, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -833,7 +776,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -848,7 +790,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -856,7 +797,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -871,7 +811,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -879,7 +818,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -904,29 +842,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "absolute", "queueType" : "leaf", "creationMethod" : "dynamicLegacy", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 625, "maxApplicationsPerUser" : 625, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -934,7 +871,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -949,7 +885,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -957,7 +892,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -972,7 +906,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -980,7 +913,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -996,14 +928,13 @@ "isAutoCreatedLeafQueue" : true, "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 - } + } ] }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1011,7 +942,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1022,38 +952,37 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=4096.0,vcores=4.0]", "capacityVectorEntries" : [ { "resourceName" : "memory-mb", - "resourceValue" : 4096 + "resourceValue" : "4096.0" }, { "resourceName" : "vcores", - "resourceValue" : 4 + "resourceValue" : "4.0" } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1061,7 +990,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1076,7 +1004,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1084,7 +1011,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1099,7 +1025,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1107,7 +1032,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1122,7 +1046,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1130,7 +1053,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1140,17 +1062,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1158,7 +1079,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1173,7 +1093,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1181,7 +1100,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1196,7 +1114,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1204,7 +1121,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1214,14 +1130,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 4096, "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1229,7 +1144,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1244,7 +1158,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1252,7 +1165,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1267,7 +1179,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1275,7 +1186,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1316,13 +1226,13 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "legacy", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1334,21 +1244,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1356,7 +1265,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1371,7 +1279,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1379,7 +1286,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1394,7 +1300,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1402,7 +1307,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1417,7 +1321,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1425,7 +1328,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1435,7 +1337,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -1468,7 +1370,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1476,7 +1377,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1494,7 +1394,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1502,7 +1401,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1520,7 +1418,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1528,7 +1425,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1545,7 +1441,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1553,7 +1448,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1581,9 +1475,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PerUserResources.json index 3ec47c5792e72..a4935ca362805 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 @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 50, + "usedCapacity" : 0.0, + "maxCapacity" : 50.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 50, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 1, "maxParallelApps" : 2147483647, "queueName" : "a", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,7 +60,7 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "root-a-default-label", + "nodeLabels" : [ "root-a-default-label" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 1, @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 50, + "usedCapacity" : 0.0, + "maxCapacity" : 50.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 50, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 50.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -185,21 +175,20 @@ "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[]" }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -207,7 +196,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -222,7 +210,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -230,7 +217,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -245,7 +231,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -253,7 +238,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -268,7 +252,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -276,7 +259,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -296,7 +278,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -304,7 +285,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -319,7 +299,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -327,7 +306,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -342,7 +320,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -350,7 +327,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -365,7 +341,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -373,7 +348,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -388,7 +362,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -396,7 +369,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -411,7 +383,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -419,7 +390,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -436,7 +406,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -444,7 +413,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -459,7 +427,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -467,7 +434,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -482,7 +448,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -490,7 +455,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -505,7 +469,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -513,7 +476,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -528,7 +490,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -536,7 +497,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -551,7 +511,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -559,7 +518,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -576,7 +534,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -584,7 +541,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -599,7 +555,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -607,7 +562,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -622,7 +576,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -630,7 +583,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -655,29 +607,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 1, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, + "userLimit" : 100.0, "users" : { - "user" : { + "user" : [ { "username" : "user1", "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -685,7 +636,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -702,7 +652,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -710,7 +659,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -725,7 +673,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -733,7 +680,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -744,14 +690,13 @@ } }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -759,7 +704,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -774,7 +718,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -782,7 +725,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -797,7 +739,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -805,7 +746,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -820,7 +760,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -828,7 +767,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -843,7 +781,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -851,7 +788,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -866,7 +802,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -874,7 +809,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -884,20 +818,19 @@ } ] } } - } + } ] }, - "userWeight" : 1, + "userWeight" : 1.0, "isActive" : true - } + } ] }, - "userLimitFactor" : 1, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -905,7 +838,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -920,7 +852,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -928,7 +859,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -943,7 +873,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -951,7 +880,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -968,16 +896,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.b", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 1, "maxParallelApps" : 2147483647, "queueName" : "b", @@ -988,7 +916,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -996,7 +923,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1007,12 +933,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 1, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -1024,21 +950,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1046,7 +971,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1061,7 +985,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1069,7 +992,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1084,7 +1006,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1092,7 +1013,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1107,7 +1027,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1115,7 +1034,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1125,17 +1043,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1143,7 +1060,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1158,7 +1074,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1166,7 +1081,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1181,7 +1095,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1189,7 +1102,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1204,7 +1116,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1212,7 +1123,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1227,7 +1137,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1235,7 +1144,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1250,7 +1158,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1258,7 +1165,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1268,14 +1174,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1283,7 +1188,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1298,7 +1202,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1306,7 +1209,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1321,7 +1223,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1329,7 +1230,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1354,29 +1254,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 1, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 5000, "maxApplicationsPerUser" : 5000, - "userLimit" : 100, + "userLimit" : 100.0, "users" : { - "user" : { + "user" : [ { "username" : "user2", "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1384,7 +1283,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1401,7 +1299,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1409,7 +1306,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1424,7 +1320,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1432,7 +1327,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1443,14 +1337,13 @@ } }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1458,7 +1351,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1473,7 +1365,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1481,7 +1372,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1496,7 +1386,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1504,7 +1393,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1519,7 +1407,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1527,7 +1414,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1542,7 +1428,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1550,7 +1435,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1565,7 +1449,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1573,7 +1456,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1583,20 +1465,19 @@ } ] } } - } + } ] }, - "userWeight" : 1, + "userWeight" : 1.0, "isActive" : true - } + } ] }, - "userLimitFactor" : 1, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1604,7 +1485,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1619,7 +1499,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1627,7 +1506,6 @@ "units" : "Mi", "value" : 1024 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1642,7 +1520,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1650,7 +1527,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1667,16 +1543,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.c", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "c", @@ -1687,7 +1563,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1695,7 +1570,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1706,12 +1580,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=37.5%,vcores=37.5%]", @@ -1724,20 +1598,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1745,7 +1618,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1760,7 +1632,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1768,7 +1639,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1783,7 +1653,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1791,7 +1660,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1806,7 +1674,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1814,7 +1681,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1824,17 +1690,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1842,7 +1707,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1857,7 +1721,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1865,7 +1728,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1880,7 +1742,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1888,7 +1749,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1903,7 +1763,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1911,7 +1770,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1926,7 +1784,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1934,7 +1791,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1949,7 +1805,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1957,7 +1812,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1967,14 +1821,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1982,7 +1835,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1997,7 +1849,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2005,7 +1856,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2020,7 +1870,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2028,7 +1877,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2053,29 +1901,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2083,7 +1930,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2098,7 +1944,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2106,7 +1951,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2121,7 +1965,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2129,7 +1972,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2148,7 +1990,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -2160,21 +2002,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2182,7 +2023,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2197,7 +2037,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -2205,7 +2044,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -2220,7 +2058,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2228,7 +2065,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2243,7 +2079,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2251,7 +2086,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2261,7 +2095,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -2294,7 +2128,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2302,7 +2135,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2320,7 +2152,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2328,7 +2159,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2346,7 +2176,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2354,7 +2183,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2371,7 +2199,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -2379,7 +2206,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -2407,9 +2233,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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-PercentageModeLegacyAutoCreation.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PercentageModeLegacyAutoCreation.json index 2c09324605e7e..de49631b86c7a 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PercentageModeLegacyAutoCreation.json +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response-PercentageModeLegacyAutoCreation.json @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.default", - "capacity" : 25, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 25, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 25.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 25.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "default", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,12 +60,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=25.0%,vcores=25.0%]", @@ -79,21 +77,20 @@ "resourceValue" : "25.0%" } ] }, - "capacity" : 25, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 25, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 25.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 25.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -180,17 +170,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -198,7 +187,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -213,7 +201,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -221,7 +208,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -236,7 +222,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -244,7 +229,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -259,7 +243,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -267,7 +250,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -282,7 +264,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -290,7 +271,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -305,7 +285,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -313,7 +292,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -323,14 +301,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 8192, "vCores" : 8, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -338,7 +315,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -353,7 +329,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -361,7 +336,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -376,7 +350,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -384,7 +357,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -409,29 +381,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 2500, "maxApplicationsPerUser" : 2500, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -439,7 +410,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -454,7 +424,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -462,7 +431,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -477,7 +445,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -485,7 +452,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -503,26 +469,25 @@ "defaultApplicationLifetime" : -1 }, { "queuePath" : "root.managed", - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "managed", "isAbsoluteResource" : false, "state" : "RUNNING", - "queues" : "", + "queues" : { }, "resourcesUsed" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -530,7 +495,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -541,12 +505,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=75.0%,vcores=75.0%]", @@ -558,21 +522,20 @@ "resourceValue" : "75.0%" } ] }, - "capacity" : 75, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 75, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 75.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 75.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -580,7 +543,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -595,7 +557,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -603,7 +564,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -618,7 +578,6 @@ "vCores" : 24, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -626,7 +585,6 @@ "units" : "Mi", "value" : 24576 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -641,7 +599,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -649,7 +606,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -659,17 +615,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -677,7 +632,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -692,7 +646,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -700,7 +653,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -715,7 +667,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -723,7 +674,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -733,14 +683,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 24576, "vCores" : 24, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -748,7 +697,6 @@ "units" : "Mi", "value" : 24576 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -763,7 +711,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -771,7 +718,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -786,7 +732,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -794,7 +739,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -819,18 +763,18 @@ "queuePriority" : 0, "orderingPolicyInfo" : "utilization", "autoCreateChildQueueEnabled" : true, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "legacy", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -842,21 +786,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -864,7 +807,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -879,7 +821,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -887,7 +828,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -902,7 +842,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -910,7 +849,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -925,7 +863,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -933,7 +870,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -943,7 +879,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -976,7 +912,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -984,7 +919,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1002,7 +936,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1010,7 +943,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1028,7 +960,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1036,7 +967,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1053,7 +983,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1061,7 +990,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1089,9 +1017,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "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.json b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/resources/webapp/scheduler-response.json index 456902e7353ba..c6857b0482e45 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 @@ -1,12 +1,12 @@ { "scheduler" : { "schedulerInfo" : { - "@xsi.type" : "capacityScheduler", - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "weight" : -1, - "normalizedWeight" : 0, + "type" : "capacityScheduler", + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", "capacityVectorEntries" : [ { @@ -23,16 +23,16 @@ "isAbsoluteResource" : false, "queues" : { "queue" : [ { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.a", "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 50, + "usedCapacity" : 0.0, + "maxCapacity" : 50.0, "absoluteCapacity" : 12.5, - "absoluteMaxCapacity" : 50, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "a", @@ -43,7 +43,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -51,7 +50,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -62,7 +60,7 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "root-a-default-label", + "nodeLabels" : [ "root-a-default-label" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, @@ -80,20 +78,19 @@ } ] }, "capacity" : 12.5, - "usedCapacity" : 0, - "maxCapacity" : 50, + "usedCapacity" : 0.0, + "maxCapacity" : 50.0, "absoluteCapacity" : 12.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 50, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 50.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -101,7 +98,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -116,7 +112,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -124,7 +119,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -139,7 +133,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -147,7 +140,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -162,7 +154,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -170,7 +161,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -185,21 +175,20 @@ "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[]" }, - "capacity" : 0, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 0, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 0, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 0.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 0.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 0.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -207,7 +196,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -222,7 +210,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -230,7 +217,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -245,7 +231,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -253,7 +238,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -268,7 +252,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -276,7 +259,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -296,7 +278,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -304,7 +285,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -319,7 +299,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -327,7 +306,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -342,7 +320,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -350,7 +327,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -365,7 +341,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -373,7 +348,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -388,7 +362,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -396,7 +369,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -411,7 +383,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -419,7 +390,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -436,7 +406,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -444,7 +413,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -459,7 +427,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -467,7 +434,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -482,7 +448,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -490,7 +455,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -505,7 +469,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -513,7 +476,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -528,7 +490,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -536,7 +497,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -551,7 +511,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -559,7 +518,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -576,7 +534,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -584,7 +541,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -599,7 +555,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -607,7 +562,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -622,7 +576,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -630,7 +583,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -655,29 +607,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 1250, "maxApplicationsPerUser" : 1250, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 2048, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -685,7 +636,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -700,7 +650,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -708,7 +657,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -723,7 +671,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -731,7 +678,6 @@ "units" : "Mi", "value" : 2048 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -748,16 +694,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.b", - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "b", @@ -768,7 +714,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -776,7 +721,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -787,12 +731,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=50.0%,vcores=50.0%]", @@ -804,21 +748,20 @@ "resourceValue" : "50.0%" } ] }, - "capacity" : 50, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 50, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 50.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 50.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -826,7 +769,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -841,7 +783,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -849,7 +790,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -864,7 +804,6 @@ "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -872,7 +811,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -887,7 +825,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -895,7 +832,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -905,17 +841,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -923,7 +858,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -938,7 +872,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -946,7 +879,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -961,7 +893,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -969,7 +900,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -984,7 +914,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -992,7 +921,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1007,7 +935,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1015,7 +942,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1030,7 +956,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1038,7 +963,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1048,14 +972,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 16384, "vCores" : 16, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1063,7 +986,6 @@ "units" : "Mi", "value" : 16384 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1078,7 +1000,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1086,7 +1007,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1101,7 +1021,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1109,7 +1028,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1134,29 +1052,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 5000, "maxApplicationsPerUser" : 5000, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1164,7 +1081,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1179,7 +1095,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1187,7 +1102,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1202,7 +1116,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1210,7 +1123,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1227,16 +1139,16 @@ "maxApplicationLifetime" : -1, "defaultApplicationLifetime" : -1 }, { - "@xsi.type" : "capacitySchedulerLeafQueueInfo", + "type" : "capacitySchedulerLeafQueueInfo", "queuePath" : "root.c", "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteMaxCapacity" : 100, - "absoluteUsedCapacity" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteMaxCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "numApplications" : 0, "maxParallelApps" : 2147483647, "queueName" : "c", @@ -1247,7 +1159,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1255,7 +1166,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1266,12 +1176,12 @@ } }, "hideReservationQueues" : false, - "nodeLabels" : "*", + "nodeLabels" : [ "*" ], "allocatedContainers" : 0, "reservedContainers" : 0, "pendingContainers" : 0, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=37.5%,vcores=37.5%]", @@ -1284,20 +1194,19 @@ } ] }, "capacity" : 37.5, - "usedCapacity" : 0, - "maxCapacity" : 100, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, "absoluteCapacity" : 37.5, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 10, - "weight" : -1, - "normalizedWeight" : 0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 10.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1305,7 +1214,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1320,7 +1228,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1328,7 +1235,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1343,7 +1249,6 @@ "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1351,7 +1256,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1366,7 +1270,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1374,7 +1277,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1384,17 +1286,16 @@ } ] } } - } + } ] }, "resources" : { - "resourceUsagesByPartition" : { + "resourceUsagesByPartition" : [ { "partitionName" : "", "used" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1402,7 +1303,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1417,7 +1317,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1425,7 +1324,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1440,7 +1338,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1448,7 +1345,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1463,7 +1359,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1471,7 +1366,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1486,7 +1380,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1494,7 +1387,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1509,7 +1401,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1517,7 +1408,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1527,14 +1417,13 @@ } ] } } - } + } ] }, "minEffectiveCapacity" : { "memory" : 12288, "vCores" : 12, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1542,7 +1431,6 @@ "units" : "Mi", "value" : 12288 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1557,7 +1445,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1565,7 +1452,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1580,7 +1466,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1588,7 +1473,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1613,29 +1497,28 @@ "queuePriority" : 0, "orderingPolicyInfo" : "fifo", "autoCreateChildQueueEnabled" : false, - "leafQueueTemplate" : "", + "leafQueueTemplate" : { }, "mode" : "percentage", "queueType" : "leaf", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "", + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { }, "numActiveApplications" : 0, "numPendingApplications" : 0, "numContainers" : 0, "maxApplications" : 3750, "maxApplicationsPerUser" : 3750, - "userLimit" : 100, - "users" : "", - "userLimitFactor" : 1, + "userLimit" : 100.0, + "users" : { }, + "userLimitFactor" : 1.0, "configuredMaxAMResourceLimit" : 0.1, "AMResourceLimit" : { "memory" : 4096, "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1643,7 +1526,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1658,7 +1540,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1666,7 +1547,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1681,7 +1561,6 @@ "vCores" : 1, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1689,7 +1568,6 @@ "units" : "Mi", "value" : 4096 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1708,7 +1586,7 @@ } ] }, "capacities" : { - "queueCapacitiesByPartition" : { + "queueCapacitiesByPartition" : [ { "partitionName" : "", "queueCapacityVectorInfo" : { "configuredCapacityVector" : "[memory-mb=100.0%,vcores=100.0%]", @@ -1720,21 +1598,20 @@ "resourceValue" : "100.0%" } ] }, - "capacity" : 100, - "usedCapacity" : 0, - "maxCapacity" : 100, - "absoluteCapacity" : 100, - "absoluteUsedCapacity" : 0, - "absoluteMaxCapacity" : 100, - "maxAMLimitPercentage" : 0, - "weight" : -1, - "normalizedWeight" : 0, + "capacity" : 100.0, + "usedCapacity" : 0.0, + "maxCapacity" : 100.0, + "absoluteCapacity" : 100.0, + "absoluteUsedCapacity" : 0.0, + "absoluteMaxCapacity" : 100.0, + "maxAMLimitPercentage" : 0.0, + "weight" : -1.0, + "normalizedWeight" : 0.0, "configuredMinResource" : { "memory" : 0, "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1742,7 +1619,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1757,7 +1633,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 8192, "minimumAllocation" : 1024, "name" : "memory-mb", @@ -1765,7 +1640,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 4, "minimumAllocation" : 1, "name" : "vcores", @@ -1780,7 +1654,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1788,7 +1661,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1803,7 +1675,6 @@ "vCores" : 32, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1811,7 +1682,6 @@ "units" : "Mi", "value" : 32768 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1821,7 +1691,7 @@ } ] } } - } + } ] }, "health" : { "lastrun" : 0, @@ -1854,7 +1724,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1862,7 +1731,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1880,7 +1748,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1888,7 +1755,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1906,7 +1772,6 @@ "vCores" : 0, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1914,7 +1779,6 @@ "units" : "Mi", "value" : 0 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1931,7 +1795,6 @@ "vCores" : 4, "resourceInformations" : { "resourceInformation" : [ { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "memory-mb", @@ -1939,7 +1802,6 @@ "units" : "Mi", "value" : 8192 }, { - "attributes" : "", "maximumAllocation" : 9223372036854775807, "minimumAllocation" : 0, "name" : "vcores", @@ -1967,9 +1829,9 @@ "queueType" : "parent", "creationMethod" : "static", "autoCreationEligibility" : "off", - "autoQueueTemplateProperties" : "", - "autoQueueParentTemplateProperties" : "", - "autoQueueLeafTemplateProperties" : "" + "autoQueueTemplateProperties" : { }, + "autoQueueParentTemplateProperties" : { }, + "autoQueueLeafTemplateProperties" : { } } } } \ No newline at end of file