Forcibly stops a Spark job that is running.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes KillSparkJob

The operation that you want to perform. Set the value to KillSparkJob.

JobId String Yes j202011031935hangzhouf742a4330003667

The ID of the Spark job.

VcName String Yes MyCluster

The name of the virtual cluster (VC) on which the job is run.

Response parameters

Parameter Type Example Description
Data String deleted

The execution result of the job. deleted indicates that the job is terminated.

RequestId String 3970ACB5-3E30-4A3A-B63A-1790FCC261F4

The unique ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=KillSparkJob
&JobId=j202011031935hangzhouf742a4330003667
&VcName=MyCluster
&<Common request parameters>

Sample success responses

XML format

<RequestId>3970ACB5-3E30-4A3A-B63A-1790FCC261F4</RequestId>
<Data>deleted</Data>

JSON format

{
  "RequestId": "3970ACB5-3E30-4A3A-B63A-1790FCC261F4",
  "Data": "deleted"
}

Error codes

For a list of error codes, visit the API Error Center.