通過EMR Doctor獲取批量任務(wù)分析結(jié)果。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
下表是API對(duì)應(yīng)的授權(quán)信息,可以在RAM權(quán)限策略語句的Action
元素中使用,用來給RAM用戶或RAM角色授予調(diào)用此API的權(quán)限。具體說明如下:
- 操作:是指具體的權(quán)限點(diǎn)。
- 訪問級(jí)別:是指每個(gè)操作的訪問級(jí)別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權(quán)的資源類型。具體說明如下:
- 對(duì)于必選的資源類型,用背景高亮的方式表示。
- 對(duì)于不支持資源級(jí)授權(quán)的操作,用
全部資源
表示。
- 條件關(guān)鍵字:是指云產(chǎn)品自身定義的條件關(guān)鍵字。
- 關(guān)聯(lián)操作:是指成功執(zhí)行操作所需要的其他權(quán)限。操作者必須同時(shí)具備關(guān)聯(lián)操作的權(quán)限,操作才能成功。
操作 | 訪問級(jí)別 | 資源類型 | 條件關(guān)鍵字 | 關(guān)聯(lián)操作 |
---|---|---|---|---|
emr:ListDoctorApplications | list |
|
| 無 |
請(qǐng)求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 地域 ID。 | cn-hangzhou |
ClusterId | string | 是 | 集群 ID。 | c-b933c5aac8fe**** |
NextToken | string | 否 | 標(biāo)記當(dāng)前開始讀取的位置。 | DD6B1B2A-5837-5237-ABE4-FF0C89568980 |
MaxResults | integer | 否 | 一次獲取的最大記錄數(shù)。 | 20 |
DateTime | string | 是 | 其日期和時(shí)間信息以 ISO 8601 格式表示, 例如:2023 年 1 月 1 日為 2023-01-01。 | 2023-01-01 |
AppIds | array | 否 | 任務(wù)提交到 YARN 的 IDs,用于過濾任務(wù)列表。 | |
String | string | 否 | YARN 的任務(wù) ID。 | application_1643475036865_****** |
Users | array | 否 | 任務(wù)提交的用戶列表,用于過濾任務(wù)列表。 | |
String | string | 否 | 任務(wù)提交到 YARN 的用戶名稱。 | DW |
Queues | array | 否 | 任務(wù)提交到 YARN 的隊(duì)列列表,用于過濾任務(wù)列表。 | |
String | string | 否 | 任務(wù)提交到的 YARN 隊(duì)列名稱。 | DW |
Types | array | 否 | 任務(wù)提交到 YARN 的引擎列表,用于過濾任務(wù)列表。 | |
String | string | 否 | 任務(wù)提交到 YARN 的引擎類型。 | SPARK |
OrderType | string | 否 | 排序方向。取值:
| ASC |
OrderBy | string | 否 | 排序順序。取值:
| score |
返回參數(shù)
示例
正常返回示例
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": "##### 當(dāng)前節(jié)點(diǎn):container\n##### 存在問題:\n最大內(nèi)存利用率為7.75%,利用率較低\n\n\n嘗試減小Tez Container內(nèi)存,可通過hive.tez.container.size進(jìn)行設(shè)置"
}
}
],
"RequestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"NextToken": "DD6B1B2A-5837-5237-ABE4-FF0C89568980",
"MaxResults": 20,
"TotalCount": 200
}
錯(cuò)誤碼
HTTP status code | 錯(cuò)誤碼 | 錯(cuò)誤信息 | 描述 |
---|---|---|---|
400 | ConflictParameters | Parameters that must not be used together. %s | 多個(gè)參數(shù)間存在沖突。 |
400 | IncompleteSignature | The request signature is invalid. | API請(qǐng)求簽名不合法。 |
400 | InvalidAction | The action %s requested is invalid. | 不合法的Action。 |
400 | InvalidParameter | The specified parameter %s is not valid. | 參數(shù)錯(cuò)誤。 |
400 | InvalidParameterValue | The input parameter %s is invalid or out of range. | 參數(shù)值超出范圍。 |
400 | MissingAction | The action %s requested is missing. | 缺少Action參數(shù) |
400 | MissingParameter | The input parameter %s that is mandatory for processing this request is not supplied. | 參數(shù)缺失。 |
400 | NotAuthorized | You do not have permission to perform this action. %s | 沒有權(quán)限。 |
400 | ThrottlingException | The request was denied due to request throttling. %s | 限流。 |
404 | ResourceNotFound | The resource not found by %s. | 請(qǐng)求的資源未找到。 |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | 內(nèi)部錯(cuò)誤。 |
503 | ServiceFailure | The request has failed due to a temporary failure of %s service. | 依賴的阿里云其他服務(wù)不可用。 |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 請(qǐng)求超時(shí)或者服務(wù)不可用。 |
訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。
變更歷史
變更時(shí)間 | 變更內(nèi)容概要 | 操作 |
---|
暫無變更歷史