All Products
Search
Document Center

AnalyticDB:KillSparkLogAnalyzeTask

Last Updated:Aug 30, 2024

Terminates a Spark log analysis task and queries the information about the analysis task.

Operation description

  • General endpoint: adb.aliyuncs.com.
  • 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.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TaskIdlongYes

The ID of the Spark log analysis task. You can call the ListSparkLogAnalyzeTasks operation to query the IDs and states of all analysis tasks in the current cluster.

15

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

1DF5AF5B-C803-1861-A0FF-63666A557709
DataSparkAnalyzeLogTask

The information about the Spark log analysis task.

Examples

Sample success responses

JSONformat

{
  "RequestId": "1DF5AF5B-C803-1861-A0FF-63666A557709",
  "Data": {
    "TaskId": 10,
    "UserId": 0,
    "SubmittedTimeInMillis": 1672123543000,
    "TerminatedTimeInMillis": 1672123543000,
    "TaskState": "WAITING",
    "Result": {
      "AppErrorCode": "EXCEEDED_QUOTA",
      "AppErrorLog": "exception: cpu is exceeded limits 12/10",
      "AppErrorAdvice": "Please increase cpu quota for your resource group"
    },
    "StartedTimeInMillis": 1672123543000,
    "RuleMatched": true,
    "TaskErrMsg": "Driver log not found",
    "DBClusterId": "amv-adbxxxxx"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400Spark.InvalidParameterInvalid parameter value: %sThe specified parameter is invalid.
400Spark.InvalidStateThe object of the operation is in an invalid state: %sThe operation object is invalid.
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