文档

ListDoctorApplications - 批量获取任务分析结果

更新时间:

通过EMR Doctor获取批量任务分析结果。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

地域 ID。

cn-hangzhou
ClusterIdstring

集群 ID。

c-b933c5aac8fe****
NextTokenstring

标记当前开始读取的位置。

DD6B1B2A-5837-5237-ABE4-FF0C89568980
MaxResultsinteger

一次获取的最大记录数。

20
DateTimestring

其日期和时间信息以 ISO 8601 格式表示, 例如:2023 年 1 月 1 日为 2023-01-01。

2023-01-01
AppIdsarray

任务提交到 YARN 的 IDs,用于过滤任务列表。

string

YARN 的任务 ID。

application_1643475036865_******
Usersarray

任务提交的用户列表,用于过滤任务列表。

string

任务提交到 YARN 的用户名称。

DW
Queuesarray

任务提交到 YARN 的队列列表,用于过滤任务列表。

string

任务提交到的 YARN 队列名称。

DW
Typesarray

任务提交到 YARN 的引擎列表,用于过滤任务列表。

string

任务提交到 YARN 的引擎类型。

SPARK
OrderTypestring

排序方向。取值:

  • ASC:升序排列。

  • DESC:降序排列。

ASC
OrderBystring

排序顺序。取值:

  1. startTime:任务启动时间。
  2. endTime:任务结束时间。
  3. vcoreUtilization:任务 CPU 使用率。
  4. memUtilization:任务内存使用率。
  5. vcoreSeconds:任务 CPU 使用量。
  6. memSeconds:任务内存使用量。
  7. score:任务评分。
score

返回参数

名称类型描述示例值
object

返回数据

Dataobject []

任务列表详情。

AppIdstring

YARN 任务 ID,如果是 Hive 任务,则是 QueryID 或者 SessionID。

application_1665056147236_*****
Idsarray

任务 IDs,多个 ID 间使用英文逗号(,)分隔。

string

YARN 的任务 ID。

application_1665056147236_*****
AppNamestring

任务名称。

data-upload
Userstring

任务提交用户名。

DW
StartTimelong

任务提交时间,Unix 时间戳,单位毫秒。

1677465658275
EndTimelong

任务结束时间,Unix 时间戳,单位毫秒。

1682049088086
Queuestring

任务提交到 YARN 的队列。

DW
Typestring

计算引擎类型。

TEZ
QuerySqlstring

查询语句,对非 SQL 任务,为空。

SELECT id, count(1) FROM test group by id;
Metricsobject

指标数据。

VcoreUtilizationobject

CPU 使用率,同 Linux Top 的%CPU 含义。

Namestring

指标名称。

vcoreUtilization
Valuefloat

指标值。

23.1
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of used vcore to total available cores
MemUtilizationobject

内存使用率。

Namestring

指标名称。

memUtilization
Valuefloat

指标值。

0.23
Unitstring

指标单位。

""
Descriptionstring

指标描述。

Ratio of used memory to total available memory
VcoreSecondsobject

CPU 使用量。

Namestring

指标名称。

vcoreSeconds
Valuelong

指标值。

11123
Unitstring

指标单位。

VCores * Sec
Descriptionstring

指标描述。

Total vcore usage over time in seconds
MemSecondsobject

内存使用量。

Namestring

指标名称。

memSeconds
Valuelong

指标值。

12312312
Unitstring

指标单位。

MB * Sec
Descriptionstring

指标描述。

Total memory usage over time in seconds
Analysisobject

任务分析。

Scoreinteger

任务评分。

23
Suggestionstring

任务运行建议。

##### 当前节点:container ##### 存在问题: 最大内存利用率为7.75%,利用率较低 尝试减小Tez Container内存,可通过hive.tez.container.size进行设置
RequestIdstring

请求 ID。

DD6B1B2A-5837-5237-ABE4-FF0C8944****
NextTokenstring

返回读取到的数据位置。

DD6B1B2A-5837-5237-ABE4-FF0C89568980
MaxResultsinteger

本次请求所返回的最大记录条数。

20
TotalCountinteger

本次请求条件下的数据总量。

200

示例

正常返回示例

JSON格式

{
  "Data": [
    {
      "AppId": "application_1665056147236_*****",
      "Ids": [
        "application_1665056147236_*****"
      ],
      "AppName": "data-upload",
      "User": "DW",
      "StartTime": 1677465658275,
      "EndTime": 1682049088086,
      "Queue": "DW",
      "Type": "TEZ",
      "QuerySql": "SELECT id, count(1) FROM test group by id;\n",
      "Metrics": {
        "VcoreUtilization": {
          "Name": "vcoreUtilization",
          "Value": 23.1,
          "Unit": "\"\"",
          "Description": "Ratio of used vcore to total available cores\n"
        },
        "MemUtilization": {
          "Name": "memUtilization\n",
          "Value": 0.23,
          "Unit": "\"\"",
          "Description": "Ratio of used memory to total available memory\n"
        },
        "VcoreSeconds": {
          "Name": "vcoreSeconds",
          "Value": 11123,
          "Unit": "VCores * Sec\n",
          "Description": "Total vcore usage over time in seconds"
        },
        "MemSeconds": {
          "Name": "memSeconds",
          "Value": 12312312,
          "Unit": "MB * Sec",
          "Description": "Total memory usage over time in seconds"
        }
      },
      "Analysis": {
        "Score": 23,
        "Suggestion": "##### 当前节点:container\n##### 存在问题:\n最大内存利用率为7.75%,利用率较低\n\n\n尝试减小Tez Container内存,可通过hive.tez.container.size进行设置"
      }
    }
  ],
  "RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
  "NextToken": "DD6B1B2A-5837-5237-ABE4-FF0C89568980",
  "MaxResults": 20,
  "TotalCount": 200
}

错误码

HTTP status code错误码错误信息描述
400ConflictParametersParameters that must not be used together. %s多个参数间存在冲突。
400IncompleteSignatureThe request signature is invalid.API请求签名不合法。
400InvalidActionThe action %s requested is invalid.不合法的Action。
400InvalidParameterThe specified parameter %s is not valid.参数错误。
400InvalidParameterValueThe input parameter %s is invalid or out of range.参数值超出范围。
400MissingActionThe action %s requested is missing.缺少Action参数
400MissingParameterThe input parameter %s that is mandatory for processing this request is not supplied.参数缺失。
400NotAuthorizedYou do not have permission to perform this action. %s没有权限。
400ThrottlingExceptionThe request was denied due to request throttling. %s限流。
404ResourceNotFoundThe resource not found by %s.请求的资源未找到。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.内部错误。
503ServiceFailureThe request has failed due to a temporary failure of %s service.依赖的阿里云其他服务不可用。
503ServiceUnavailableThe request has failed due to a temporary failure of the server.请求超时或者服务不可用。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈