CancelSparkWarehouseBatchSQL - 取消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代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
adb:CancelSparkWarehouseBatchSQL |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| QueryId |
string |
是 |
Spark SQL 的执行 ID。 |
sq202501011001s**** |
| DBClusterId |
string |
否 |
集群 ID。 |
amv-uf6485635f*** |
| Agency |
string |
否 |
协助记录客户端名称,最长 16 个字符的意义字符串。 |
DMS |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结构。 |
||
| RequestId |
string |
请求 ID。 |
771C5FAA-530F-52F7-B84D-EBAD45*** |
| Data | SparkBatchSQL |
返回结果。 |
123 |
示例
正常返回示例
JSON格式
{
"RequestId": "771C5FAA-530F-52F7-B84D-EBAD45***",
"Data": {
"Uid": 0,
"QuerySubmissionTime": 1723521767000,
"Query": "SELECT * FROM db.tb",
"QueryId": "sq172352176****",
"Schema": "default",
"QueryEndTime": 1723521767000,
"DBClusterId": "amv-bp17s73f016****",
"QueryState": "RUNNING",
"Statements": [
{
"ResultUri": "oss://yourbucket/result.json",
"EndTime": 1723521767000,
"AppId": "s20240122jsdx****",
"StatementId": "sq1723521767****-0001",
"State": "RUNNING",
"StartTime": 1723521767000,
"Error": "table is not found",
"Code": "SELECT 100",
"Result": "+---+-----+\n|age| name|\n+---+-----+\n| 14| Tom|\n| 23|Alice|\n+---+-----+"
}
],
"ErrMessage": "schema is not found",
"QueryStartTime": 1723521767000,
"ResourceGroupName": "spark_rg"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Spark.SQL.NotFoundExecutableSQLError | No executable statements are submitted. Please check the input SQL. | Spark作业的SQL信息中不包含可执行语句。 |
| 400 | Spark.SQL.BlankError | Input sql can not be blank string. | 提交SQL不能为空。 |
| 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管控组件系统遇到错误,请提交工单,或联系值班工程师。 |
| 404 | Spark.App.NotFound | The Spark application %s is not found. | 未能找到输入的 Spark App。 |
| 404 | Spark.ObjectNotFound | The object is not found. More information: %s | 操作对象不存在。关联信息:%s。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。