Obtains the status of a Spark job.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetJobStatus |
The operation that you want to perform. Set the value to GetJobStatus. |
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 |
---|---|---|---|
RequestId | String | 5C3F9ADD-2350-4C21-A3A1-A906F8DF8016 |
The unique ID of the request. |
Status | String | success |
The status code of the job. |
Status code |
Description |
---|---|
starting |
The job is starting and has not been run. |
running |
The job is being run. |
error |
The execution of a program in the job failed and an exception is returned. |
dead |
The job failed due to issues such as insufficient resources. |
killed |
The job is canceled during execution. |
success |
The job succeeds. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=GetJobStatus
&JobId=j202011031935hangzhouf742a4330003667
&VcName=MyCluster
&<Common request parameters>
Sample success responses
XML
format
<Status>success</Status>
<RequestId>5C3F9ADD-2350-4C21-A3A1-A906F8DF8016</RequestId>
JSON
format
{
"Status": "success",
"RequestId": "5C3F9ADD-2350-4C21-A3A1-A906F8DF8016"
}
Error codes
For a list of error codes, visit the API Error Center.