文档

GetDoctorJob - 获取单个任务运行结果

更新时间:

通过EMR Doctor获取任务基本运行信息。

调试

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

授权信息

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

请求参数

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

地域 ID。

cn-hangzhou
ClusterIdstring

集群 ID。

c-b933c5aac8fe****
AppIdstring

任务提交到 YARN 的 ID。

application_1542620905989_****

返回参数

名称类型描述示例值
object

返回数据

Dataobject

任务信息。

AppIdstring

任务提交到 YARN 的 ID。

application_1542620905989_****
AppNamestring

任务名称。

CREATE TABLE test...ranks=1 (Stage-1)
Userstring

任务提交用户名。

DW
Queuestring

任务提交到 YARN 的队列。

DW
Statestring

应用执行状态,取值说明:

  • FINISHED:结束的。
  • FAILED:失败的。
  • KILLED:中止的。
FINISHED
FinalStatusstring

应用执行结束状态,取值说明:

  • SUCCEEDED:成功的。
  • FAILED:失败的。
  • KILLED:中止的。
  • ENDED: 结束的。
  • UNDEFINED:未定义的。
KILLED
Typestring

计算引擎类型。

SPARK
StartTimelong

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

1673946000000
LaunchTimelong

任务启动时间,Unix 时间戳,单位毫秒。

1665014400000
ElapsedTimelong

任务运行总时间,单位毫秒。

278
FinishTimelong

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

1658388322000
Metricsobject

指标数据。

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
RequestIdstring

请求 ID。

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

示例

正常返回示例

JSON格式

{
  "Data": {
    "AppId": "application_1542620905989_****",
    "AppName": "\t\nCREATE TABLE test...ranks=1 (Stage-1)\n",
    "User": "DW",
    "Queue": "DW",
    "State": "FINISHED",
    "FinalStatus": "KILLED",
    "Type": "SPARK",
    "StartTime": 1673946000000,
    "LaunchTime": 1665014400000,
    "ElapsedTime": 278,
    "FinishTime": 1658388322000,
    "Metrics": {
      "VcoreSeconds": {
        "Name": "vcoreSeconds\n",
        "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\n"
      }
    }
  },
  "RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****"
}

错误码

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)
文档反馈