Yarn REST API 使用指南

本文涉及的产品
实时计算 Flink 版,5000CU*H 3个月
简介: yarn

Yarn作为一款优秀的开源集群管理工具,可以用它来运行Hadoop,Spark,Flink等大数据处理任务。所有的分布式计算框架,都是主从模式,ResourceManager作为集群的管理员,是任务提交的入口。一般企业的大数据处理平台会在Yarn的基础中做进一步的封装,以web应用的形式提供更高级的大数据处理平台。如果web应用通过shell的方式提交任务将显得太重,而且不利于任务状态的监控。幸好Yarn提供了ResourceManager的REST API,可以很方便的向集群提交、杀死任务或者监控任务的状态,本文将简要介绍ResourceManager REST API的使用方法。

向集群提交任务

先通过POST请求生成application_id再通过这个id来提交任务。

生成application-id

通过POST请求rm-http-address:port/ws/v1/cluster/apps/new-application,不需要参数,ResourceManager将返回application_id与集群可用资源配额,如下:

请求url

http://cdh-1:8088/ws/v1/cluster/apps/new-application

请求参数:无

返回数据

{
    "application-id": "application_1613349389113_0535",
    "maximum-resource-capability": {
        "memory": 16384,
        "vCores": 8,
        "resourceInformations": {
            "resourceInformation": [
                {
                    "maximumAllocation": 9223372036854775807,
                    "minimumAllocation": 0,
                    "name": "memory-mb",
                    "resourceType": "COUNTABLE",
                    "units": "Mi",
                    "value": 16384
                },
                {
                    "maximumAllocation": 9223372036854775807,
                    "minimumAllocation": 0,
                    "name": "vcores",
                    "resourceType": "COUNTABLE",
                    "units": "",
                    "value": 8
                }
            ]
        }
    }
}

返回json字段说明

Item Data Type Description
application-id string The newly created application id
maximum-resource-capability object The maximum resource capabilities available on this cluster

maximum-resource-capability元素说明

Item Data Type Description
memory int 容器可用的最大内存
vCores int 容器可用的最大核心数

提交任务

提交应用程序API可用于提交应用程序。如果提交申请,则必须首先使用Cluster New Application API获得一个应用程序ID 。应用程序ID必须是请求正文的一部分。响应包含指向应用程序页面的URL,可用于跟踪应用程序的状态和进度。

通过POST请求rm-http-address:port/ws/v1/cluster/apps提交任务

请求url

http://cdh-1:8088/ws/v1/cluster/apps

请求参数

  POST http://<rm http address:port>/ws/v1/cluster/apps
  Accept: application/json
  Content-Type: application/json
  {
    "application-id":"application_1404203615263_0001",
    "application-name":"test",
    "am-container-spec":
    {
      "local-resources":
      {
        "entry":
        [
          {
            "key":"AppMaster.jar",
            "value":
            {
              "resource":"hdfs://hdfs-namenode:9000/user/testuser/DistributedShell/demo-app/AppMaster.jar",
              "type":"FILE",
              "visibility":"APPLICATION",
              "size": 43004,
              "timestamp": 1405452071209
            }
          }
        ]
      },
      "commands":
      {
        "command":"{{JAVA_HOME}}/bin/java -Xmx10m org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster --container_memory 10 --container_vcores 1 --num_containers 1 --priority 0 1><LOG_DIR>/AppMaster.stdout 2><LOG_DIR>/AppMaster.stderr"
      },
      "environment":
      {
        "entry":
        [
          {
            "key": "DISTRIBUTEDSHELLSCRIPTTIMESTAMP",
            "value": "1405459400754"
          },
          {
            "key": "CLASSPATH",
            "value": "{{CLASSPATH}}<CPS>./*<CPS>{{HADOOP_CONF_DIR}}<CPS>{{HADOOP_COMMON_HOME}}/share/hadoop/common/*<CPS>{{HADOOP_COMMON_HOME}}/share/hadoop/common/lib/*<CPS>{{HADOOP_HDFS_HOME}}/share/hadoop/hdfs/*<CPS>{{HADOOP_HDFS_HOME}}/share/hadoop/hdfs/lib/*<CPS>{{HADOOP_YARN_HOME}}/share/hadoop/yarn/*<CPS>{{HADOOP_YARN_HOME}}/share/hadoop/yarn/lib/*<CPS>./log4j.properties"
          },
          {
            "key": "DISTRIBUTEDSHELLSCRIPTLEN",
            "value": "6"
          },
          {
            "key": "DISTRIBUTEDSHELLSCRIPTLOCATION",
            "value": "hdfs://hdfs-namenode:9000/user/testuser/demo-app/shellCommands"
          }
        ]
      }
    },
    "unmanaged-AM":false,
    "max-app-attempts":2,
    "resource":
    {
      "memory":1024,
      "vCores":1
    },
    "application-type":"YARN",
    "keep-containers-across-application-attempts":false
  }

请求参数说明

Item Data Type Description
application-id string 申请编号
application-name string 申请名称
queue string 应将应用程序提交到的队列的名称
priority int 应用程序的优先级
am-container-spec object 应用程序主容器启动上下文,如下所述
unmanaged-AM boolean 该应用程序是否使用非托管应用程序主机
max-app-attempts int 此应用程序的最大尝试次数
resource object 应用程序主机需要的资源,如下所述
application-type string 应用程序类型(MapReduce,Pig,Hive等)
keep-containers-across-application-attmpts boolean YARN是否应保留此应用程序使用的容器而不是销毁它们
application-tags object 应用程序标签列表,请参阅有关如何指定标签的请求示例

am-container-spec对象的元素

应该使用am-container-spec对象为应用程序主机提供容器启动上下文。

Item Data Type Description
local-resources object 描述需要本地化的资源的对象,如下所述
environment object 容器的环境变量,指定为键值对
commands object 用于启动容器的命令(应按执行顺序)
service-data object 特定于应用程序的服务数据;key是辅助服务的名称,值是您希望传递的数据的base-64编码
credentials object 您的应用程序运行所需的凭据,如下所述
application-acls object 您的应用程序的ACLs;密钥可以是“ VIEW_APP”或“ MODIFY_APP”,值是具有权限的用户列表

local-resource对象的元素

Item Data Type Description
resource string 要本地化的资源的位置
type string 资源类型;选项是“ ARCHIVE”,“ FILE”和“ PATTERN”
visibility string 可见要本地化的资源;选项是“ PUBLIC”,“ PRIVATE”和“ APPLICATION”
size long 要本地化的资源大小
timestamp long 要本地化的资源的时间戳

credentials对象的元素

Item Data Type Description
tokens object 您希望传递给应用程序的令牌,指定为键值对。密钥是令牌的标识符,值是令牌(应使用相应的Web服务获取)
secrets object 您希望在应用程序中使用的机密,指定为键值对。它们的键是标识符,值是密钥的base-64编码

resource对象的元素

Item Data Type Description
memory int 每个容器所需的内存
vCores int 每个容器所需的虚拟核心

返回数据: 无

提交后ResourceManager不会返回信息。从请求的参数可以看出,如果想通过Yarn来管理某个分布式计算任务,必须有对应的ApplicationMaser实现,如上例中的AppMaster.jar,其执行入口类为org.apache.hadoop.yarn.applications.distributedshell.ApplicationMaster。常见的分布式计算任务如Hadoop、Spark与Flink都有,但Flink-yarn项目对Flink 1.9貌似还 没有实现对应的ApplicationMaster,所以Flink 1.9的任务目前还不能通过Rest API提交(1.7可以)。

查询任务状态信息

查询所有任务

通过GET请求rm-http-address:port/ws/v1/cluster/apps将获取到所有任务的信息列表,如

请求url

 http://cdh-:8088/ws/v1/cluster/apps

请求参数(可选)

可以为GET操作指定多个参数。开始时间和结束时间都有一个begin和end参数,以允许您指定范围。例如,可以请求在2021年3月2日早上09:00:00和早上10:00:00之间启动的所有应用程序,其中startedTimeBegin = 1614646800000&startedTimeEnd = 1614650400000。如果未指定Begin参数,则默认为0;如果未指定End参数,则默认为无穷大。

  * state [deprecated] - state of the application
  * states - applications matching the given application states, specified as a comma-separated list.[NEW, NEW_SAVING, SUBMITTED, ACCEPTED, RUNNING, FINISHED, FAILED, KILLED]
  * finalStatus - the final status of the application - reported by the application itself [UNDEFINED, FAILED, KILLED, SUCCEEDED]
  * user - user name
  * queue - queue name
  * limit - total number of app objects to be returned
  * startedTimeBegin - applications with start time beginning with this time, specified in ms since epoch
  * startedTimeEnd - applications with start time ending with this time, specified in ms since epoch
  * finishedTimeBegin - applications with finish time beginning with this time, specified in ms since epoch
  * finishedTimeEnd - applications with finish time ending with this time, specified in ms since epoch
  * applicationTypes - applications matching the given application types, specified as a comma-separated list.
  * applicationTags - applications matching any of the given application tags, specified as a comma-separated list.

返回数据

{
    "apps": {
        "app": [
            {
                "id": "application_1613349389113_0393",
                "user": "root",
                "name": "com.zzmj.main.KafkaToParquet",
                "queue": "root.users.root",
                "state": "RUNNING",
                "finalStatus": "UNDEFINED",
                "progress": 10.0,
                "trackingUI": "ApplicationMaster",
                "trackingUrl": "http://cdh-1:8088/proxy/application_1613349389113_0393/",
                "diagnostics": "",
                "clusterId": 1613349389113,
                "applicationType": "SPARK",
                "applicationTags": "",
                "priority": 0,
                "startedTime": 1614648944707,
                "launchTime": 1614648945179,
                "finishedTime": 0,
                "elapsedTime": 515573848,
                "amContainerLogs": "http://cdh-4:8042/node/containerlogs/container_1613349389113_0393_01_000001/root",
                "amHostHttpAddress": "cdh-4:8042",
                "amRPCAddress": "cdh-4:46434",
                "allocatedMB": 5120,
                "allocatedVCores": 4,
                "reservedMB": 0,
                "reservedVCores": 0,
                "runningContainers": 2,
                "memorySeconds": 2514229328,
                "vcoreSeconds": 1914825,
                "queueUsagePercentage": 6.25,
                "clusterUsagePercentage": 6.25,
                "resourceSecondsMap": {
                    "entry": {
                        "key": "memory-mb",
                        "value": "2514229328"
                    },
                    "entry": {
                        "key": "vcores",
                        "value": "1914825"
                    }
                },
                "preemptedResourceMB": 0,
                "preemptedResourceVCores": 0,
                "numNonAMContainerPreempted": 0,
                "numAMContainerPreempted": 0,
                "preemptedMemorySeconds": 0,
                "preemptedVcoreSeconds": 0,
                "preemptedResourceSecondsMap": {},
                "logAggregationStatus": "NOT_START",
                "unmanagedApplication": false,
                "amNodeLabelExpression": "",
                "timeouts": {
                    "timeout": [
                        {
                            "type": "LIFETIME",
                            "expiryTime": "UNLIMITED",
                            "remainingTimeInSeconds": -1
                        }
                    ]
                }
            }
        ]
    }
}

字段说明

Item DataType Description
id string 应用的application-id
user string 提交任务的用户名
name string 应用程序的名称
queue string 应用程序所属消息队列
state string 应用程序当前状态
finalStatus string 应用程序最终状态
progress double 应用程序进度
trackingUI string 追踪UI显示名称
trackingUrl string 追踪UI的url
clusterId string 集群id
applicationType string 应用程序类型
priority int 应用程序优先级
startedTime long 应用程序开始时间
launchTime long 应用程序加载时间
finishedTime long 应用程序完成时间
elapsedTime long 应用程序消耗时间(finished-start)
amContainerLogs string am容器日志地址
amHostHttpAddress string am的主机http地址
amRPCAddress string am的RPC地址
allocatedMB string 初始化内存大小
allocatedVCores string 初始化核心数
reservedMB string 保留内存
reservedVCores string 保留核心数
runningContainers string 正在运行的容器数
memorySeconds int 所有的container每秒消耗的内存总和
vcoreSecond string 所有的container每秒消耗的核心数总和
queueUsagePercentage double 所属队列的资源使用百分比
clusterUsagePercentage double 所属集群的资源使用百分比
logAggregationStatus string 日志聚合状态
unmanagedApplication boolean 未被管理的应用程序

查询单个任务

通过GET请求rm-http-address:port/ws/v1/cluster/apps/{appid},如

http://cdh-1:8088/ws/v1/cluster/apps/application_1613349389113_0001
{
    "app": {
        "id": "application_1613349389113_0001",
        "user": "root",
        "name": "StorageAgg",
        "queue": "root.users.root",
        "state": "RUNNING",
        "finalStatus": "UNDEFINED",
        "progress": 100.0,
        "trackingUI": "ApplicationMaster",
        "trackingUrl": "http://cdh-1:8088/proxy/application_1613349389113_0001/",
        "diagnostics": "",
        "clusterId": 1613349389113,
        "applicationType": "Apache Flink",
        "applicationTags": "",
        "priority": 0,
        "startedTime": 1613358478865,
        "launchTime": 1613358479810,
        "finishedTime": 0,
        "elapsedTime": 1829294258,
        "amContainerLogs": "http://cdh-4:8042/node/containerlogs/container_1613349389113_0001_01_000001/root",
        "amHostHttpAddress": "cdh-4:8042",
        "amRPCAddress": "cdh-4:8082",
        "allocatedMB": 9216,
        "allocatedVCores": 4,
        "reservedMB": 0,
        "reservedVCores": 0,
        "runningContainers": 2,
        "memorySeconds": 16858454105,
        "vcoreSeconds": 7317057,
        "queueUsagePercentage": 11.25,
        "clusterUsagePercentage": 11.25,
        "resourceSecondsMap": {
            "entry": {
                "key": "memory-mb",
                "value": "16858454105"
            },
            "entry": {
                "key": "vcores",
                "value": "7317057"
            }
        },
        "preemptedResourceMB": 0,
        "preemptedResourceVCores": 0,
        "numNonAMContainerPreempted": 0,
        "numAMContainerPreempted": 0,
        "preemptedMemorySeconds": 0,
        "preemptedVcoreSeconds": 0,
        "preemptedResourceSecondsMap": {},
        "logAggregationStatus": "NOT_START",
        "unmanagedApplication": false,
        "amNodeLabelExpression": "",
        "timeouts": {
            "timeout": [
                {
                    "type": "LIFETIME",
                    "expiryTime": "UNLIMITED",
                    "remainingTimeInSeconds": -1
                }
            ]
        }
    }
}

修改任务状态

通过Cluster Application State API来完成,当然需要得到RM web service的授权才能进行这种操作,URI为rm-http-address:port/ws/v1/cluster/apps/{appid}/state,如

通过GET请求该URI

http://cdh-1:8088/ws/v1/cluster/apps/application_1613349389113_0001/state

将返回的application_id为application_1613349389113_0001的任务的状态

{
    "state": "RUNNING"
}

然会参数列举说明

Item Data Type Description
state string The application state - can be one of “NEW”, “NEW_SAVING”, “SUBMITTED”, “ACCEPTED”, “RUNNING”, “FINISHED”, “FAILED”, “KILLED”

或者通过PUT请求来kill一个job

 http://cdh-1:8088/ws/v1/cluster/apps/application_1399397633663_0003/state
{
  "state":"KILLED"
}

返回结果为

{
  "state":"RUNNING"
}

其实的state的状态为当前程序的状态【RUNNING, ACCEPTED】

重新通过GET请求该任务的状态

发现该任务已经被kill了

{
  "state":"KILLED"
}

查看与调整任务优先级

主要通过访问rm-http-address:port/ws/v1/cluster/apps/{appid}/priority来完成。统一需要得到RM web services的授权

查看任务优先级

通过GET请求上面的URI,如

 http://cdh-1:8088/ws/v1/cluster/apps/application_1613349389113_0001/priority

将返回application_id为application_1613349389113_0001的任务的优先级

{
    "priority": 0
}

修改任务优先级

如果这项任务非常重要,你想让它优先执行,可通过PUT请求来修改其优先级

 http://cdh-1:8088/ws/v1/cluster/apps/application_1613349389113_0001/priority
 请求参数:
    Accept: application/json
    Content-Type: application/json
    {
        "priority": 8
    }

集群API

集群信息

主要通过GET请求访问rm-http-address:port/ws/v1/cluster来完成。

通过GET请求上面的URI,如

 http://cdh-1:8088/ws/v1/cluster

请求参数: 无

返回数据

{
    "clusterInfo": {
        "id": 1613349389113,
        "startedOn": 1613349389113,
        "state": "STARTED",
        "haState": "ACTIVE",
        "rmStateStoreName": "org.apache.hadoop.yarn.server.resourcemanager.recovery.NullRMStateStore",
        "resourceManagerVersion": "3.0.0-cdh6.3.2",
        "resourceManagerBuildVersion": "3.0.0-cdh6.3.2 from 9aff20de3b5ecccf3c19d57f71b214fb4d37ee89 by jenkins source checksum bdea11f98ce3d056d6c170c883b73569",
        "resourceManagerVersionBuiltOn": "2019-11-08T13:55Z",
        "hadoopVersion": "3.0.0-cdh6.3.2",
        "hadoopBuildVersion": "3.0.0-cdh6.3.2 from 9aff20de3b5ecccf3c19d57f71b214fb4d37ee89 by jenkins source checksum f539c87da37534aad732f2a7ddcc59",
        "hadoopVersionBuiltOn": "2019-11-08T13:49Z",
        "haZooKeeperConnectionState": "Could not find leader elector. Verify both HA and automatic failover are enabled."
    }
}

返回数据字段说明

Item Data Type Description
id long 集群ID
startedOn long 集群启动的时间(从纪元开始以毫秒为单位)
state string ResourceManager状态-有效值为:NOTINITED,INITED,STARTED,STOPPED
haState string ResourceManager HA状态-有效值为:INITIALIZING,ACTIVE,STANDBY,STOPPED
rmStateStoreName string 实现ResourceManager状态存储的类的完全限定名称
resourceManagerVersion string ResourceManager的版本
resourceManagerBuildVersion string ResourceManager构建字符串以及构建版本,用户和校验和
resourceManagerVersionBuiltOn string 生成ResourceManager的时间戳(自纪元以来以毫秒为单位)
hadoopVersion string Hadoop通用版本
hadoopBuildVersion string 具有构建版本,用户和校验和的Hadoop通用构建字符串
hadoopVersionBuiltOn string 建立hadoop common的时间戳(自纪元以来以毫秒为单位)
haZooKeeperConnectionState string ZooKeeper高可用性服务的连接状态

集群指标

通过GET请求rm-http-address:port/ws/v1/cluster/metrics来完成。

通过GET请求上面URI,如

 http://cdh-1:8088/ws/v1/cluster/metrics

请求参数: 无

返回数据

{
    "clusterMetrics": {
        "appsSubmitted": 547,
        "appsCompleted": 506,
        "appsPending": 0,
        "appsRunning": 8,
        "appsFailed": 14,
        "appsKilled": 19,
        "reservedMB": 0,
        "availableMB": 36864,
        "allocatedMB": 45056,
        "reservedVirtualCores": 0,
        "availableVirtualCores": 8,
        "allocatedVirtualCores": 32,
        "containersAllocated": 16,
        "containersReserved": 0,
        "containersPending": 0,
        "totalMB": 81920,
        "totalVirtualCores": 40,
        "totalNodes": 5,
        "lostNodes": 0,
        "unhealthyNodes": 0,
        "decommissioningNodes": 0,
        "decommissionedNodes": 0,
        "rebootedNodes": 0,
        "activeNodes": 5,
        "shutdownNodes": 0
    }
}

返回数据字段说明

Item Data Type Description
appsSubmitted int 提交的应用程序数量
appsCompleted int 完成的应用程序数量
appsPending int 等待的应用程序数量
appsRunning int 正在运行的应用程序数量
appsFailed int 失败的应用程序数量
appsKilled int 被杀死的应用程序数量
reservedMB long 保留的内存量(MB)
availableMB long 可用的内存量(MB)
allocatedMB long 分配的内存量(MB)
totalMB long 总内存量(MB)
reservedVirtualCores long 保留的虚拟核心数
availableVirtualCores long 可用虚拟核心数
allocatedVirtualCores long 分配的虚拟核心数
totalVirtualCores long 虚拟核心总数
containersAllocated int 分配的容器数
containersReserved int 保留的容器数
containersPending int 待处理的容器数
totalNodes int 节点总数
activeNodes int 活动节点数
lostNodes int 丢失的节点数
unhealthyNodes int 不良节点数
decommissioningNodes int 停用的节点数
decommissionedNodes int 退役的节点数
rebootedNodes int 重新启动的节点数
shutdownNodes int 关闭的节点数

集群调度

调度程序资源包含有关集群中配置的当前调度程序的信息。它目前支持Fifo,容量和公平调度程序。根据配置哪个调度程序,您将获得不同的信息,因此请务必查看类型信息。

请求URI

http://cdh-1:8088/ws/v1cluster/scheduler

请求参数: 无

返回数据

{
    "scheduler": {
        "schedulerInfo": {
            "type": "fairScheduler",
            "rootQueue": {
                "maxApps": 2147483647,
                "minResources": {
                    "memory": 0,
                    "vCores": 0,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 16384,
                                "minimumAllocation": 1024,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 0
                            },
                            {
                                "maximumAllocation": 8,
                                "minimumAllocation": 1,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 0
                            }
                        ]
                    }
                },
                "maxResources": {
                    "memory": 81920,
                    "vCores": 40,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 81920
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 40
                            }
                        ]
                    }
                },
                "usedResources": {
                    "memory": 45056,
                    "vCores": 32,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 45056
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 32
                            }
                        ]
                    }
                },
                "amUsedResources": {
                    "memory": 0,
                    "vCores": 0,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 0
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 0
                            }
                        ]
                    }
                },
                "amMaxResources": {
                    "memory": 0,
                    "vCores": 0,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 0
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 0
                            }
                        ]
                    }
                },
                "demandResources": {
                    "memory": 45056,
                    "vCores": 32,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 45056
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 32
                            }
                        ]
                    }
                },
                "steadyFairResources": {
                    "memory": 81920,
                    "vCores": 40,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 81920
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 40
                            }
                        ]
                    }
                },
                "fairResources": {
                    "memory": 81920,
                    "vCores": 40,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 81920
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 40
                            }
                        ]
                    }
                },
                "clusterResources": {
                    "memory": 81920,
                    "vCores": 40,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 81920
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 40
                            }
                        ]
                    }
                },
                "reservedResources": {
                    "memory": 0,
                    "vCores": 0,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 0
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 0
                            }
                        ]
                    }
                },
                "maxContainerAllocation": {
                    "memory": 16384,
                    "vCores": 8,
                    "resourceInformations": {
                        "resourceInformation": [
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "memory-mb",
                                "resourceType": "COUNTABLE",
                                "units": "Mi",
                                "value": 16384
                            },
                            {
                                "maximumAllocation": 9223372036854775807,
                                "minimumAllocation": 0,
                                "name": "vcores",
                                "resourceType": "COUNTABLE",
                                "units": "",
                                "value": 8
                            }
                        ]
                    }
                },
                "allocatedContainers": 16,
                "reservedContainers": 0,
                "queueName": "root",
                "schedulingPolicy": "DRF",
                "preemptable": true,
                "childQueues": {
                    "queue": [
                        {
                            "type": "fairSchedulerLeafQueueInfo",
                            "maxApps": 2147483647,
                            "minResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 16384,
                                            "minimumAllocation": 1024,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 8,
                                            "minimumAllocation": 1,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "maxResources": {
                                "memory": 81920,
                                "vCores": 40,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 81920
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 40
                                        }
                                    ]
                                }
                            },
                            "usedResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "amUsedResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "amMaxResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "demandResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "steadyFairResources": {
                                "memory": 40960,
                                "vCores": 20,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 40960
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 20
                                        }
                                    ]
                                }
                            },
                            "fairResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "clusterResources": {
                                "memory": 81920,
                                "vCores": 40,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 81920
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 40
                                        }
                                    ]
                                }
                            },
                            "reservedResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "maxContainerAllocation": {
                                "memory": 16384,
                                "vCores": 8,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 16384
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 8
                                        }
                                    ]
                                }
                            },
                            "allocatedContainers": 0,
                            "reservedContainers": 0,
                            "queueName": "root.default",
                            "schedulingPolicy": "DRF",
                            "preemptable": true,
                            "numPendingApps": 0,
                            "numActiveApps": 0
                        },
                        {
                            "maxApps": 2147483647,
                            "minResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 16384,
                                            "minimumAllocation": 1024,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 8,
                                            "minimumAllocation": 1,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "maxResources": {
                                "memory": 81920,
                                "vCores": 40,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 81920
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 40
                                        }
                                    ]
                                }
                            },
                            "usedResources": {
                                "memory": 45056,
                                "vCores": 32,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 45056
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 32
                                        }
                                    ]
                                }
                            },
                            "amUsedResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "amMaxResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "demandResources": {
                                "memory": 45056,
                                "vCores": 32,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 45056
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 32
                                        }
                                    ]
                                }
                            },
                            "steadyFairResources": {
                                "memory": 40960,
                                "vCores": 20,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 40960
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 20
                                        }
                                    ]
                                }
                            },
                            "fairResources": {
                                "memory": 81920,
                                "vCores": 40,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 81920
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 40
                                        }
                                    ]
                                }
                            },
                            "clusterResources": {
                                "memory": 81920,
                                "vCores": 40,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 81920
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 40
                                        }
                                    ]
                                }
                            },
                            "reservedResources": {
                                "memory": 0,
                                "vCores": 0,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 0
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 0
                                        }
                                    ]
                                }
                            },
                            "maxContainerAllocation": {
                                "memory": 16384,
                                "vCores": 8,
                                "resourceInformations": {
                                    "resourceInformation": [
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "memory-mb",
                                            "resourceType": "COUNTABLE",
                                            "units": "Mi",
                                            "value": 16384
                                        },
                                        {
                                            "maximumAllocation": 9223372036854775807,
                                            "minimumAllocation": 0,
                                            "name": "vcores",
                                            "resourceType": "COUNTABLE",
                                            "units": "",
                                            "value": 8
                                        }
                                    ]
                                }
                            },
                            "allocatedContainers": 16,
                            "reservedContainers": 0,
                            "queueName": "root.users",
                            "schedulingPolicy": "DRF",
                            "preemptable": true,
                            "childQueues": {
                                "queue": [
                                    {
                                        "type": "fairSchedulerLeafQueueInfo",
                                        "maxApps": 2147483647,
                                        "minResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 16384,
                                                        "minimumAllocation": 1024,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 8,
                                                        "minimumAllocation": 1,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "maxResources": {
                                            "memory": 65536,
                                            "vCores": 32,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 65536
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 32
                                                    }
                                                ]
                                            }
                                        },
                                        "usedResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "amUsedResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "amMaxResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "demandResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "steadyFairResources": {
                                            "memory": 13654,
                                            "vCores": 7,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 13654
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 7
                                                    }
                                                ]
                                            }
                                        },
                                        "fairResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "clusterResources": {
                                            "memory": 81920,
                                            "vCores": 40,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 81920
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 40
                                                    }
                                                ]
                                            }
                                        },
                                        "reservedResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "maxContainerAllocation": {
                                            "memory": 16384,
                                            "vCores": 8,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 16384
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 8
                                                    }
                                                ]
                                            }
                                        },
                                        "allocatedContainers": 0,
                                        "reservedContainers": 0,
                                        "queueName": "root.users.hdfs",
                                        "schedulingPolicy": "DRF",
                                        "preemptable": true,
                                        "numPendingApps": 0,
                                        "numActiveApps": 0
                                    },
                                    {
                                        "type": "fairSchedulerLeafQueueInfo",
                                        "maxApps": 2147483647,
                                        "minResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 16384,
                                                        "minimumAllocation": 1024,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 8,
                                                        "minimumAllocation": 1,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "maxResources": {
                                            "memory": 81920,
                                            "vCores": 40,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 81920
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 40
                                                    }
                                                ]
                                            }
                                        },
                                        "usedResources": {
                                            "memory": 45056,
                                            "vCores": 32,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 45056
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 32
                                                    }
                                                ]
                                            }
                                        },
                                        "amUsedResources": {
                                            "memory": 9728,
                                            "vCores": 8,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 9728
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 8
                                                    }
                                                ]
                                            }
                                        },
                                        "amMaxResources": {
                                            "memory": 40960,
                                            "vCores": 20,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 40960
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 20
                                                    }
                                                ]
                                            }
                                        },
                                        "demandResources": {
                                            "memory": 45056,
                                            "vCores": 32,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 45056
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 32
                                                    }
                                                ]
                                            }
                                        },
                                        "steadyFairResources": {
                                            "memory": 13654,
                                            "vCores": 7,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 13654
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 7
                                                    }
                                                ]
                                            }
                                        },
                                        "fairResources": {
                                            "memory": 81920,
                                            "vCores": 40,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 81920
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 40
                                                    }
                                                ]
                                            }
                                        },
                                        "clusterResources": {
                                            "memory": 81920,
                                            "vCores": 40,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 81920
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 40
                                                    }
                                                ]
                                            }
                                        },
                                        "reservedResources": {
                                            "memory": 0,
                                            "vCores": 0,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 0
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 0
                                                    }
                                                ]
                                            }
                                        },
                                        "maxContainerAllocation": {
                                            "memory": 16384,
                                            "vCores": 8,
                                            "resourceInformations": {
                                                "resourceInformation": [
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "memory-mb",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "Mi",
                                                        "value": 16384
                                                    },
                                                    {
                                                        "maximumAllocation": 9223372036854775807,
                                                        "minimumAllocation": 0,
                                                        "name": "vcores",
                                                        "resourceType": "COUNTABLE",
                                                        "units": "",
                                                        "value": 8
                                                    }
                                                ]
                                            }
                                        },
                                        "allocatedContainers": 16,
                                        "reservedContainers": 0,
                                        "queueName": "root.users.root",
                                        "schedulingPolicy": "fair",
                                        "preemptable": true,
                                        "numPendingApps": 0,
                                        "numActiveApps": 8
                                    }
                                ]
                            }
                        }
                    ]
                }
            }
        }
    }
}

集群应用程序尝试API

使用应用程序尝试API,您可以获得代表应用程序尝试的资源的集合。在此资源上运行GET操作时,将获得App Attempt对象的集合。

请求URI

http://cdh-1:8088/ws/v1/cluster/apps/{appid}/appattempts

请求参数: 无

返回数据

{
    "appAttempts": {
        "appAttempt": [
            {
                "id": 1,
                "startTime": 1615272507648,
                "finishedTime": 0,
                "containerId": "container_1615272298938_0001_01_000001",
                "nodeHttpAddress": "cdh-6:8042",
                "nodeId": "cdh-6:8041",
                "logsLink": "http://cdh-6:8042/node/containerlogs/container_1615272298938_0001_01_000001/root",
                "blacklistedNodes": "",
                "nodesBlacklistedBySystem": "",
                "appAttemptId": "appattempt_1615272298938_0001_000001"
            }
        ]
    }
}
Item Data Type Description
id string 应用尝试ID
nodeId string 尝试运行的节点的节点ID
nodeHttpAddress string 尝试运行的节点的节点http地址
logsLink string 应用程序尝试日志的http链接
containerId string 应用尝试容器的ID
startTime long 尝试的开始时间(自纪元以来以毫秒为单位)
相关实践学习
基于Hologres轻松玩转一站式实时仓库
本场景介绍如何利用阿里云MaxCompute、实时计算Flink和交互式分析服务Hologres开发离线、实时数据融合分析的数据大屏应用。
Linux入门到精通
本套课程是从入门开始的Linux学习课程,适合初学者阅读。由浅入深案例丰富,通俗易懂。主要涉及基础的系统操作以及工作中常用的各种服务软件的应用、部署和优化。即使是零基础的学员,只要能够坚持把所有章节都学完,也一定会受益匪浅。
相关文章
|
19天前
|
缓存 API 网络架构
掌握现代API开发:GraphQL vs REST
【10月更文挑战第24天】本文深入探讨了现代API开发中两种主流技术——GraphQL和REST的设计理念、技术特点及实际开发中的对比分析。GraphQL通过声明式数据请求和强类型系统提供更高的灵活性和性能,而REST则以其无状态特性和成熟的生态系统见长。文章还讨论了两者在客户端-服务器交互、安全性和工具支持方面的优劣,帮助开发者根据项目需求做出明智选择。
|
2月前
|
JSON 中间件 API
开发REST API3-11
开发REST API3-11
|
2月前
|
JSON JavaScript API
编写REST API
编写REST API
60 2
|
1月前
|
Java API Maven
使用 Smart-doc 记录 Spring REST API
使用 Smart-doc 记录 Spring REST API
46 0
|
3月前
|
XML 安全 API
REST 和 SOAP API 有什么区别?
【8月更文挑战第31天】
184 0
|
3月前
|
JSON API 数据安全/隐私保护
哇塞!Django REST framework 太逆天啦!构建 API 服务从未如此轻松,你还不来试试?
【8月更文挑战第31天】Django REST framework(DRF)是基于Django框架的高效Web API开发工具,提供序列化、视图集、路由等功能,简化API构建流程。使用DRF可轻松实现数据的序列化与反序列化,并支持权限管理和认证机制以保障API安全。安装DRF只需通过`pip install djangorestframework`命令。要创建基本项目,先安装Django并创建新应用,定义模型、序列化器及视图集,最后配置路由。测试API时,可通过Postman发送HTTP请求验证功能。无论项目大小,DRF均能提供强大支持。
41 0
|
3月前
|
中间件 API 网络架构
Django后端架构开发:从匿名用户API节流到REST自定义认证
Django后端架构开发:从匿名用户API节流到REST自定义认证
40 0
|
2月前
|
资源调度 分布式计算 Hadoop
YARN(Hadoop操作系统)的架构
本文详细解释了YARN(Hadoop操作系统)的架构,包括其主要组件如ResourceManager、NodeManager和ApplicationMaster的作用以及它们如何协同工作来管理Hadoop集群中的资源和调度作业。
126 3
YARN(Hadoop操作系统)的架构
|
2月前
|
资源调度 分布式计算 Hadoop
使用YARN命令管理Hadoop作业
本文介绍了如何使用YARN命令来管理Hadoop作业,包括查看作业列表、检查作业状态、杀死作业、获取作业日志以及检查节点和队列状态等操作。
54 1
使用YARN命令管理Hadoop作业
|
3月前
|
资源调度 分布式计算 算法
【揭秘Yarn调度秘籍】打破资源分配的枷锁,Hadoop Yarn权重调度全攻略!
【8月更文挑战第24天】在大数据处理领域,Hadoop Yarn 是一种关键的作业调度与集群资源管理工具。它支持多种调度器以适应不同需求,默认采用FIFO调度器,但可通过引入基于权重的调度算法来提高资源利用率。该算法根据作业或用户的权重值决定资源分配比例,权重高的可获得更多计算资源,特别适合多用户共享环境。管理员需在Yarn配置文件中启用特定调度器(如CapacityScheduler),并通过设置队列权重来实现资源的动态调整。合理配置权重有助于避免资源浪费,确保集群高效运行,满足不同用户需求。
51 3