获取Spark App指标数据。
接口说明
- 地域的公网接入地址:
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暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AppId | string | 是 | 应用 ID。 | s202204221525hzca7d8140000003 |
DBClusterId | string | 否 | 企业版、基础版或湖仓版集群 ID。 说明
您可以调用 DescribeDBClusters 接口查询目标地域中所有集群的集群 ID。
| amv-bp1ggnu61d77**** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Data": {
"AppId": "s202302051515shfa865f8000****",
"AttemptId": "s202301061000hz57d797b0000201-****",
"Finished": true,
"EventLogPath": "oss://path/to/eventLog",
"ScanMetrics": {
"OutputRowsCount": 1000,
"TotalReadFileSizeInByte": 10000
}
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Spark.InvalidState | The object of the operation is in an invalid state: %s | 操作对象处于非合法状态。 |
400 | Spark.InvalidParameter | Invalid parameter value: %s | 输入参数不正确。 |
400 | Spark.AnalyzeTask.AppStateNotAccepted | Only Spark applications in the terminated state can be analyzed. The specified application %s does not meet the requirement. | 只允许分析处于终止状态的 Spark app。指定 app 不满足条件。 |
400 | Spark.AnalyzeTask.FailedToKill | Failed to terminate the Spark log analysis task %s, because the task status has changed. Obtain the latest status and try again. | 杀死Spark日志分析任务的请求执行失败,因为对应任务状态已经发生了变化。请获取分析任务最新状态后执行。 |
400 | Spark.AnalyzeTask.InvalidStateWhenAnalyzingApp | Only logs of Spark applications in the terminated state can be analyzed. The specified application %s does not meet the requirement. | 仅允许针对处于终止状态的Spark作业执行日志分析程序。当前作业不满足条件。 |
400 | Spark.App.InvalidResourceSpec | The requested resource type is not supported:\n %s | - |
400 | Spark.App.KillOperationFailed | Failed to kill the application %s, please retry in a few seconds. | 杀死 Spark 应用失败,请稍后重试。 |
400 | Spark.App.ParameterConflict | Conflicting parameters submitted:\n %s | - |
400 | Spark.CancelNotebookStatementFailed | Failed to cancel the execution of notebook statements. | Notebook 取消代码运行失败 |
400 | Spark.CloseNotebookKernelFailed | Failed to disable the notebook kernel. | Notebook Kernel 关闭失败 |
400 | Spark.Config.invalidConnectors | The spark.adb.connectors configuration is invalid: %s | spark.adb.connectors配置不正确。 |
400 | Spark.Config.RoleArnVerifyFailed | RoleARN parameter verification failed. Error msg: %s when verify RoleArn %s | RoleARN参数校验失败。 |
400 | Spark.ExecuteNotebookStatementFailed | Failed to execute notebook statements. | Notebook 代码运行失败 |
400 | Spark.GetNotebookKernelFailed | Failed to start the notebook kernel. Try again later. | Notebook Kernel 启动失败,请稍后重试 |
400 | Spark.GetNotebookKernelStateFailed | Failed to obtain the status of the notebook kernel. | Notebook Kernel 状态查询失败 |
400 | Spark.GetNotebookStatementLogFailed | Failed to obtain notebook statement logs. | Notebook 代码执行日志查询失败 |
400 | Spark.GetNotebookStatementResultFailed | Failed to obtain notebook statement execution results. | Notebook 代码运行结果查询失败 |
400 | Spark.GetNotebookStatementUiFailed | Failed to obtain notebook statement UI. | Notebook 代码UI查询失败 |
400 | Spark.Log.IllegalPath | Invalid job log URI: %s. | 配置的Spark日志路径不合法:%s。 |
400 | Spark.Log.InvalidState | Failed to obtain the logs of the Spark job %s in the %s state. | 无法获取指定Spark作业的日志。 |
400 | Spark.NotebookKernelBusy | Too many jobs in the notebook kernel. Try again later. | Notebook Kernel 作业数过多,请稍后重试 |
400 | Spark.NotebookKernelExpired | The notebook kernel has expired. Restart the kernel. | Notebook Kernel 已过期,请重新启动 |
400 | Spark.NotebookKernelInvalidStatus | The status of the notebook kernel is invalid. | Notebook Kernel 状态无效,请联系管理员 |
400 | Spark.NotebookKernelNotStartup | The notebook kernel has not been started | Notebook Kernel未启动,请先启动 |
400 | Spark.NotebookKernelStarting | The notebook kernel is starting. Try again later. | Notebook Kernel 启动中,请稍后重试 |
400 | Spark.NotebookNamingDuplicate | The name of the notebook is duplicated, please change the name | Notebook命名重复,请重新命名。 |
400 | Spark.NotebookNotFound | The notebook is not found | Notebook不存在,请联系管理员 |
400 | Spark.NotebookParagraphMissingProgramCode | The notebook paragraph program code is missing | Notebook段落缺少执行代码 |
400 | Spark.NotebookParagraphNotFound | The notebook paragraph is not found | Notebook段落不存在,请联系管理员 |
400 | Spark.NotebookParagraphNotRunning | The notebook paragraph has not been running | Notebook段落未运行,请先执行语句 |
400 | Spark.Oss.InternalError | An OSS internal error occurred: %s | OSS内部错误,请求失败。 |
400 | Spark.RoleArn.Invalid | %s is not found, or the RAM role has not been authorized. | RoleArn不存在或子账号未授权。 |
400 | Spark.SQL.NotFoundExecutableSQLError | No executable statements are submitted. Please check the input SQL. | Spark作业的SQL信息中不包含可执行语句。 |
400 | Spark.SQL.ParserError | Failed to parse the SQL %s. Error message: %s. | Spark作业信息中的SQL无法解析。 |
400 | Spark.TemplateFile.BadFileType | The requested template %s is not a file. | 请求的模板文件ID不是文件类型的。 |
403 | Spark.Forbidden | No permissions to access the resources: %s | 权限不足,拒绝访问相关资源。您当前申请访问的信息是:%s。 |
404 | Spark.AnalyzeTask.NotFound | The requested analysis task %s is not found. | 请求查看的日志分析任务 %s 不存在。 |
404 | Spark.App.ContentNotFound | The requested content %s of the Spark application is not found. | 找不到指定Spark作业的提交内容。 |
404 | Spark.Log.PodLogNotFound | Can't find logs of the pod by podName[%s] in the namespace[%s]. | 无法通过podName找到对应pod的日志。 |
404 | Spark.ObjectNotFound | The object is not found. More information: %s | 操作对象不存在。关联信息:%s。 |
404 | Spark.TemplateFile.FileNotFound | The template file %s is not found. | 未能找到输入的模板文件。 |
404 | Spark.TemplateFile.TemplateNotFound | The template %s is not found. | 模板文件未找到。 |
406 | Spark.App.KillNotAcceptable | Can't kill the application %s in %s state. | 不能删除处于不可删除状态下的 Spark 应用。 |
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管控组件系统遇到错误,请提交工单,或联系值班工程师。 |
500 | Spark.Resources.LoadFileFromClasspathFailed | Can't load the content from file: %s | 加载资源文件失败。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2023-11-24 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 查看变更详情 |
2023-06-28 | OpenAPI 错误码发生变更 | 查看变更详情 |