All Products
Search
Document Center

AnalyticDB:GetSparkConfigLogPath

Last Updated:Nov 10, 2025

Queries the Spark log configuration of an AnalyticDB for MySQL cluster, including the default Spark log path.

Operation description

  • Regional public endpoint: adb.<region-id>.aliyuncs.com. Example: adb.cn-hangzhou.aliyuncs.com.
  • Regional Virtual Private Cloud (VPC) endpoint: adb-vpc.<region-id>.aliyuncs.com. Example: adb-vpc.cn-hangzhou.aliyuncs.com.
Note If HTTP status code 409 is returned when you call this operation in the China (Qingdao), China (Shenzhen), China (Guangzhou), or China (Hong Kong) region, contact technical support.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adb:GetSparkConfigLogPathget
*DBClusterLakeVersion
acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DBClusterIdstringYes

The ID of the AnalyticDB for MySQL Data Lakehouse Edition cluster.

am-adsdxxxx

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

1919-xxx-ssdfsdff
Dataobject

The queried Spark log configuration.

IsLogPathExistsboolean

Indicates whether a log path exists.

true
RecordedLogPathstring

The recorded log path.

oss://test/spark-logs/
ModifiedUidstring

The account ID of the modifier.

10130223128xxx
ModifiedTimestampstring

The last modification time.

1675654361000
DefaultLogPathstring

The default log path.

oss://aliyun-oa-adb-spark-1111-oss-cn-hanghzou/spark-logs

Examples

Sample success responses

JSONformat

{
  "RequestId": "1919-xxx-ssdfsdff",
  "Data": {
    "IsLogPathExists": true,
    "RecordedLogPath": "oss://test/spark-logs/",
    "ModifiedUid": "10130223128xxx",
    "ModifiedTimestamp": 1675654361000,
    "DefaultLogPath": "oss://aliyun-oa-adb-spark-1111-oss-cn-hanghzou/spark-logs"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400Spark.InvalidParameterInvalid parameter value: %sIncorrect input parameter:%s.
400Spark.InvalidStateThe object of the operation is in an invalid state: %sThe operation object is invalid.
400Spark.Config.InvalidAppFilePathThe main driver file MUST be a valid OSS path. Current is %s.-
400Spark.Config.invalidConnectorsThe spark.adb.connectors configuration is invalid: %s-
400Spark.Config.InvalidDiskConfigThe requested disk mount parameter is invalid: %s-
400Spark.Config.InvalidHostAliasConfigThe requested host alias parameter %s is invalid. Example: 127.0.0.1 localhost local-
400Spark.Config.InvalidLogOssPathThe OSS address for log storage is illegal: %s-
400Spark.Config.InvalidRoleArnFormatConfigure RoleARN %s invalid format. It should match acs:ram::uid_number:role/role_name-
400Spark.Config.InvalidTimeZoneUnable to parse time zone configuration %s : %s-
400Spark.Config.MainAppFileNotExistsThe main driver file is missing, [file] or [sqls] must be configured.-
400Spark.Config.OSSPathAccessErrorThe configured OSS address %s cannot be accessed.-
400Spark.Config.OSSPathNotExistsThe OSS address %s requested does not exist or the permissions are insufficient.-
400Spark.Config.RoleArnVerifyFailedRoleARN parameter verification failed. Error msg: %s when verify RoleArn %s-
400Spark.Config.SecurityGroupNotFoundThe security group in the configuration does not exist or cannot be accessed. %s.The configured resource group does not exist or cannot be accessed due to insufficient permissions. %s.
400Spark.Config.VswitchNotFoundThe vswitch in the configuration does not exist or cannot be accessed. %s.-
403Spark.ForbiddenNo permissions to access the resources: %sInsufficient permissions to access the related resources. Information that you want to access: %s.
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: %sAn error occurred on the Spark control component system. Submit a ticket or contact technical support.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-07-27The Error code has changedView Change Details