最近更新时间:2023.05.11 16:26:02
首次发布时间:2023.05.11 16:17:41
调用 DescribeApplication 接口,查询目标任务的详情。
您必须是目标项目的项目成员,否则无法查询到 Spark 任务详情。相关文档,请参见权限概述。
参数 | 类型 | 是否必填 | 示例值 | 说明 |
---|---|---|---|---|
ApplicationTrn | string | 是 | 1646***3459458 | 任务 ID。 |
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
RestUrl | string | /ui/spark-history-server:18080/history/s-164**601/jobs | 任务相对路径。 |
Jar | string | 5eb5896a**70108933 | 任务资源文件路径或元数据 ID。
|
ApplicationTrn | string | 1646***3459458 | 任务 ID。 |
Args | string | 3 60 | 任务启动类的参数。 |
ApplicationType | string | SPARK_BATCH_SQL | 任务类型。可能的取值如下:
|
Conf | map<string,string> | { | 任务额外自定义的配置参数。 |
DeployRequest | object(POSTApiV1AppUpdateDeployRequest) | - | 任务部署策略,详情请参见 POSTApiV1AppUpdateDeployRequest 数据结构。 |
State | string | CREATED | 任务状态,可能的取值如下:
|
MainClass | string | com.bytedance.openplatform.SparkPi | Jar 类型任务的启动类。 |
UserId | string | 6e224069****cc1517306a | 任务创建者的 ID。 |
EngineVersion | string | SPARK_VERSION_3_0_1_OS | 引擎版本。可能的取值如下:
|
ApplicationName | string | spark-application-2 | 任务名称。 |
ProjectId | string | w4***rd65 | 任务所属项目的 ID。 |
POSTApiV1AppUpdateDeployRequest 数据结构
参数 | 类型 | 示例值 | 说明 |
---|---|---|---|
Priority | string | 3 | 任务优先级。 |
ResourcePoolTrn | string | doc-resource-1-***226 | 任务运行资源池的唯一标识符。 |
SchedulePolicy | string | GANG | 任务调度策略。
|
ScheduleTimeout | string | 0 | 设置为 GANG 调度策略时,对应的调度时长,单位为秒。 |
POST https://open.volcengineapi.com?Action=DescribeApplication&Version=2021-06-01 Content-Type: application/json Region: cn-beijing ServiceName: spark { "ApplicationTrn": "1647**4065" }
{ "ResponseMetadata": { "RequestId": "202304171852264D58F678887E2C795C61", "Action": "DescribeApplication", "Version": "2021-06-01", "Service": "spark", "Region": "cn-beijing" }, "Result": { "ApplicationName": "spark-application-2", "State": "CREATED", "EngineVersion": "SPARK_VERSION_3_0_1_OS", "ProjectId": "w4***rd65", "SqlText": "select * from `docdb`.`hivetable`;", "Conf": {}, "DeployRequest": { "Priority": "4", "ResourcePoolTrn": "doc-resource-1-***226", "SchedulePolicy": "DRF", "ScheduleTimeout": "0" }, "UserId": "6e224069****cc1517306a" } }