文档

UpdateSparkTemplateFile - 更新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代码示例。

授权信息

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

请求参数

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

AnalyticDB MySQL 湖仓版 3.0 集群 ID。

amv-pz5vp4585l466****
Idlong

应用模板 ID。

说明 调用 GetSparkTemplateFullTree 接口查询应用模板 ID。
718056
Contentstring

应用模板数据。

说明 此参数不填写时,不更新应用模板。如何配置 Spark 应用模板,请参见 Spark 应用配置指南
set spark.driver.resourceSpec=medium;set spark.executor.instances=2;set spark.executor.resourceSpec=medium;set spark.app.name=Spark SQL Test;
ResourceGroupNamestring

Job 型资源组名称。

adb

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求 ID。

C3A9594F-1D40-4472-A96C-8FB8AA20D38C
Dataobject

更新结果。

Succeededboolean

应用模板更新是否成功,取值说明:

  • True:更新成功。
  • False:更新失败。
True

示例

正常返回示例

JSON格式

{
  "RequestId": "C3A9594F-1D40-4472-A96C-8FB8AA20D38C",
  "Data": {
    "Succeeded": true
  }
}

错误码

HTTP status code错误码错误信息描述
400Spark.InvalidParameterInvalid parameter value: %s输入参数不正确。
400Spark.TemplateFile.BadFileTypeThe requested template %s is not a file.请求的模板文件ID不是文件类型的。
400Spark.InvalidStateThe object of the operation is in an invalid state: %s操作对象处于非合法状态。
400Spark.Log.IllegalPathInvalid job log URI: %s.配置的Spark日志路径不合法:%s。
400Spark.Log.InvalidStateFailed to obtain the logs of the Spark job %s in the %s state.无法获取指定Spark作业的日志。
400Spark.Oss.InternalErrorAn OSS internal error occurred: %sOSS内部错误,请求失败。
400Spark.RoleArn.Invalid%s is not found, or the RAM role has not been authorized.RoleArn不存在或子账号未授权。
403Spark.ForbiddenNo permissions to access the resources: %s权限不足,拒绝访问相关资源。您当前申请访问的信息是:%s。
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.模板文件未找到。
404Spark.Log.PodLogNotFoundCan't find logs of the pod by podName[%s] in the namespace[%s].无法通过podName找到对应pod的日志。
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
    新增错误码:403
    新增错误码:404
    新增错误码:500
  • 本页导读 (1)
文档反馈