文档

GetSparkSQLEngineState - 查询Spark SQL引擎状态

更新时间:

查询Spark SQL引擎的状态。

接口说明

  • 地域的公网接入地址: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代码示例。

授权信息

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

请求参数

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

AnalyticDB MySQL 湖仓版 3.0 集群 ID。

amv-bp11q28kvl688****
ResourceGroupNamestring

Job 型资源组名称。

test_instance

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

Id of the request

xxxx-xxx-xx
Dataobject

Spark SQL 引擎状态详情。

AppIdstring

应用 ID。

s202207151211hz0c****
MinExecutorstring

Spark Executor 最小启动量。

1
MaxExecutorstring

Spark Executor 最大启动量。

3
Jarsstring

第三方 JAR 包。

oss://test-bucket/test.jar
SlotNumstring

Spark 应用槽位值。

2
Configstring

Spark 应用配置。

{"key1": "value1", "key2": "value2"}
Statestring

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

  • SUBMITTED:已提交。
  • STARTING:开始启动。
  • RUNNING:执行中。
  • FAILING:任务失败,清理环境中。
  • FAILED:失败。
  • KILLING:中止任务,清理环境中。
  • KILLED:中止任务。
  • SUCCEEDING:任务执行结束,清理环境中。
  • COMPLETED:已完成。
  • FATAL:意外失败。
  • UNKNOWN:未知错误。
COMPLETED
SubmittedTimeInMillisstring

Spark SQL 应用的提交时间,Unix 时间戳,单位毫秒(ms)。

1651213645000

示例

正常返回示例

JSON格式

{
  "RequestId": "xxxx-xxx-xx",
  "Data": {
    "AppId": "s202207151211hz0c****",
    "MinExecutor": "1",
    "MaxExecutor": "3",
    "Jars": "oss://test-bucket/test.jar",
    "SlotNum": "2",
    "Config": "{\"key1\": \"value1\", \"key2\": \"value2\"}",
    "State": "COMPLETED",
    "SubmittedTimeInMillis": "1651213645000"
  }
}

错误码

HTTP status code错误码错误信息描述
400Spark.InvalidParameterInvalid parameter value: %s输入参数不正确。
400Spark.InvalidStateThe object of the operation is in an invalid state: %s操作对象处于非合法状态。
400Spark.AnalyzeTask.AppStateNotAcceptedOnly Spark applications in the terminated state can be analyzed. The specified application %s does not meet the requirement.只允许分析处于终止状态的 Spark app。指定 app 不满足条件。
400Spark.AnalyzeTask.FailedToKillFailed to terminate the Spark log analysis task %s, because the task status has changed. Obtain the latest status and try again.杀死Spark日志分析任务的请求执行失败,因为对应任务状态已经发生了变化。请获取分析任务最新状态后执行。
400Spark.AnalyzeTask.InvalidStateWhenAnalyzingAppOnly logs of Spark applications in the terminated state can be analyzed. The specified application %s does not meet the requirement.仅允许针对处于终止状态的Spark作业执行日志分析程序。当前作业不满足条件。
400Spark.App.InvalidResourceSpecThe requested resource type is not supported:\n %s不支持申请的资源机型。
400Spark.App.ParameterConflictConflicting parameters submitted:\n %s提交Spark作业的配置参数存在冲突。
400Spark.Config.invalidConnectorsThe spark.adb.connectors configuration is invalid: %sspark.adb.connectors配置不正确。
400Spark.Config.RoleArnVerifyFailedRoleARN parameter verification failed. Error msg: %s when verify RoleArn %sRoleARN参数校验失败。
400Spark.Log.InvalidStateFailed to obtain the logs of the Spark job %s in the %s state.无法获取指定Spark作业的日志。
400Spark.SQL.NotFoundExecutableSQLErrorNo executable statements are submitted. Please check the input SQL.Spark作业的SQL信息中不包含可执行语句。
400Spark.SQL.ParserErrorFailed to parse the SQL %s. Error message: %s.Spark作业信息中的SQL无法解析。
404Spark.App.ContentNotFoundThe requested content %s of the Spark application is not found.找不到指定Spark作业的提交内容。
404Spark.AnalyzeTask.NotFoundThe requested analysis task %s is not found.请求查看的日志分析任务不存在。
404Spark.ObjectNotFoundThe object is not found. More information: %s操作对象不存在。关联信息:%s。
404Spark.TemplateFile.FileNotFoundThe template file %s is not found.未能找到输入的模板文件。
404Spark.TemplateFile.TemplateNotFoundThe template %s is not found.模板文件未找到。
500Spark.ServerErrorThe Spark control component system encountered an error, please create a ticket to solve the problem or concat the supported engineer on duty. Error message: %sSpark管控组件系统遇到错误,请提交工单,或联系值班工程师。

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

变更历史

变更时间变更内容概要操作
2023-06-28OpenAPI 错误码发生变更看变更集
变更项变更内容
错误码OpenAPI 错误码发生变更
    错误码 400 变更
    删除错误码:500
    新增错误码:404
  • 本页导读 (1)
文档反馈