ListSparkAppAttempts - 查询Spark应用的重试信息
查询指定Spark应用的重试信息。
接口说明
地域的公网接入地址:
adb.<region-id>.aliyuncs.com。示例:adb.cn-hangzhou.aliyuncs.com。地域的 VPC 接入地址:
adb-vpc.<region-id>.aliyuncs.com。示例:adb-vpc.cn-hangzhou.aliyuncs.com。
如果华北 1(青岛)、华南 1(深圳)、华南 3(广州)、中国香港发起请求时,遇到 409 错误,请联系技术支持。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
adb:ListSparkAppAttempts |
list |
*DBClusterLakeVersion
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| AppId |
string |
是 |
应用 ID。 说明
您可以调用 ListSparkApps 接口查询所有的应用 ID。 |
s202204132018hzprec1ac**** |
| PageNumber |
integer |
是 |
页码,取值为正整数。默认值为 1。 |
1 |
| PageSize |
integer |
否 |
每页记录数,取值:
|
10 |
| DBClusterId |
string |
否 |
企业版、基础版或湖仓版集群 ID。 |
amv-uf6o6m8p6x*** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| Data |
object |
返回数据。 |
|
| AttemptInfoList |
array |
重试信息列表。返回参数说明:
|
|
| SparkAttemptInfo |
重试信息列表。返回参数说明:
|
||
| PageNumber |
integer |
页码。 |
1 |
| PageSize |
integer |
每页记录数。 |
10 |
| TotalCount |
integer |
总记录数。 |
3 |
示例
正常返回示例
JSON格式
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Data": {
"AttemptInfoList": [
{
"AttemptId": "s202207151211hz****-0001",
"Message": "WARN: Disk is full",
"Priority": "NORMAL",
"State": "SUBMITTED",
"Detail": {
"DurationInMillis": 100,
"LogRootPath": "oss:///logs/driver",
"DBClusterId": "amv-bp11q28kvl688****",
"Data": "{ \"name\": \"SparkPi\", \"file\": \"local:///tmp/spark-examples.jar\", \"className\": \"org.apache.spark.examples.SparkPi\", \"args\": [ \"1000000\" ], \"conf\": { \"spark.driver.resourceSpec\": \"small\", \"spark.executor.instances\": 1, \"spark.executor.resourceSpec\": \"small\" } }",
"EstimateExecutionCpuTimeInSeconds": 100,
"LastUpdatedTimeInMillis": 1651213645200,
"RunningStartTimeInMillis": 36000,
"LastAttemptId": "s202204291426hzpre60****-0003",
"TerminatedTimeInMillis": 1651213645300,
"ResourceProvisioningDurationInMillis": 36000,
"ExecutionDurationInMillis": 36000,
"WebUiAddress": "https://adbsparkui-cn-hangzhou.aliyuncs.com/?token=****",
"SubmittedTimeInMillis": 1651213645000,
"StartedTimeInMillis": 1651213645010,
"AppType": "BATCH",
"ResourceGroupName": "spark-rg"
}
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 3
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Spark.InvalidParameter | Invalid parameter value: %s | 输入参数不正确:%s。 |
| 400 | Spark.InvalidState | The object of the operation is in an invalid state: %s | 操作对象处于非合法状态。 |
| 500 | Spark.ServerError | The Spark control component system encountered an error, please create a ticket to solve the problem or concat the supported engineer on duty. Error message: %s | Spark管控组件系统遇到错误,请提交工单,或联系值班工程师。 |
| 403 | Spark.Forbidden | No permissions to access the resources: %s | 权限不足,拒绝访问相关资源。您当前申请访问的信息是:%s。 |
| 404 | Spark.App.ContentNotFound | The requested content %s of the Spark application is not found. | 找不到指定Spark作业的提交内容。 |
| 404 | Spark.ObjectNotFound | The object is not found. More information: %s | 操作对象不存在。关联信息:%s。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。