查詢AnalyticDB MySQL 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暫無授權信息透出。
請求參數
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
DBClusterId | string | 是 | 企業版、基礎版或湖倉版集群 ID。 | amv-bp19lm077co***** |
返回參數
示例
正常返回示例
JSON
格式
{
"RequestId": "1919-xxx-ssdfsdff",
"Data": {
"IsLogPathExists": true,
"RecordedLogPath": "oss://test/spark-logs/",
"ModifiedUid": "10130223128xxx",
"ModifiedTimestamp": "1675654361000",
"DefaultLogPath": "oss://aliyun-oa-adb-spark-****-oss-cn-hanghzou/spark-logs"
}
}
錯誤碼
HTTP status code | 錯誤碼 | 錯誤信息 | 描述 |
---|---|---|---|
400 | Spark.InvalidParameter | Invalid parameter value: %s | 輸入參數不正確。 |
400 | Spark.InvalidState | The object of the operation is in an invalid state: %s | 操作對象處于非合法狀態。 |
400 | Spark.Config.InvalidAppFilePath | The main driver file MUST be a valid OSS path. Current is %s. | 主驅動文件地址必須是合法的OSS地址,當前的地址是 %s。 |
400 | Spark.Config.invalidConnectors | The spark.adb.connectors configuration is invalid: %s | spark.adb.connectors配置不正確。 |
400 | Spark.Config.InvalidDiskConfig | The requested disk mount parameter is invalid: %s | 磁盤掛載配置錯誤。 |
400 | Spark.Config.InvalidHostAliasConfig | The requested host alias parameter %s is invalid. Example: 127.0.0.1 localhost local | 域名映射配置錯誤。 |
400 | Spark.Config.InvalidLogOssPath | The OSS address for log storage is illegal: %s | 存儲日志的OSS地址非法。 |
400 | Spark.Config.InvalidRoleArnFormat | Configure RoleARN %s invalid format. It should match acs:ram::uid_number:role/role_name | 配置的RoleARN格式錯誤。 |
400 | Spark.Config.InvalidTimeZone | Unable to parse time zone configuration %s : %s | 時區配置錯誤。 |
400 | Spark.Config.MainAppFileNotExists | The main driver file is missing, [file] or [sqls] must be configured. | 主驅動文件缺失,必須保證file或者sqls配置不為空。 |
400 | Spark.Config.OSSPathAccessError | The configured OSS address %s cannot be accessed. | 配置的OSS路徑無法訪問。 |
400 | Spark.Config.OSSPathNotExists | The OSS address %s requested does not exist or the permissions are insufficient. | OSS路徑不存在或當前用戶無權限訪問。 |
400 | Spark.Config.RoleArnVerifyFailed | RoleARN parameter verification failed. Error msg: %s when verify RoleArn %s | RoleARN參數校驗失敗。 |
400 | Spark.Config.SecurityGroupNotFound | The security group in the configuration does not exist or cannot be accessed. %s. | 配置的資源組不存在或者因權限不足無法訪問。%s。 |
400 | Spark.Config.VswitchNotFound | The vswitch in the configuration does not exist or cannot be accessed. %s. | 無法找到配置虛擬機交換機,或當前賬號權限不足。%s。 |
403 | Spark.Forbidden | No permissions to access the resources: %s | 權限不足,拒絕訪問相關資源。您當前申請訪問的信息是:%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管控組件系統遇到錯誤,請提交工單,或聯系值班工程師。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
變更時間 | 變更內容概要 | 操作 |
---|---|---|
2023-07-27 | OpenAPI 錯誤碼發生變更 | 查看變更詳情 |