This API is used to query details about a batch processing job based on the job ID.
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Definition Project ID, which is used for resource isolation. For how to obtain a project ID, see Obtaining a Project ID. Example: 48cc2c48765f481480c7db940d6409d1 Constraints None Range The value can contain 1 to 64 characters. Only letters and digits are allowed. Default Value None |
batch_id |
Yes |
String |
Definition ID of a batch processing job. For details about how to obtain an ID, see appId in the response parameters in Listing Batch Processing Jobs. Example: 0a324461-d9d9-45da-a52a-3b3c7a3d809e Constraints The parameter value must be a string matching the regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$. Range None Default Value None |
None
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
id |
No |
String |
Definition ID of a batch processing job, which is in the universal unique identifier (UUID) format Range None |
appId |
No |
String |
Definition Back-end application ID of a batch processing job. Range None |
name |
No |
String |
Definition Name of a batch processing job. Range None |
owner |
No |
String |
Definition Owner of a batch processing job. Range None |
proxyUser |
No |
String |
Definition Proxy user (resource tenant) to which a batch processing job belongs. Range None |
state |
No |
String |
Definition Status of a batch processing job Range
|
kind |
No |
String |
Definition Type of a batch processing job. Only Spark parameters are supported. Range None |
log |
No |
Array of Strings |
Definition Last 10 records of the current batch processing job. Range None |
sc_type |
No |
String |
Definition Compute resource type. Currently, the value can be A, B, or C. If the compute resource type is customized, value CUSTOMIZED is returned. Range
|
cluster_name |
No |
String |
Definition Queue where a batch processing job is located. Range None |
queue |
No |
String |
Definition Queue where a batch processing job is located. Range None |
create_time |
No |
Long |
Definition Time when a batch processing job is created. The timestamp is in milliseconds. Range None |
update_time |
No |
Long |
Definition Time when a batch processing job is updated. The timestamp is in milliseconds. Range None |
req_body |
No |
String |
Definition Request parameter details. Range None |
None
{
"id": "0a324461-d9d9-45da-a52a-3b3c7a3d809e",
"appId": "",
"name": "",
"owner": "",
"proxyUser": "",
"state": "starting",
"kind":"",
"log": [
"stdout: ",
"stderr: ",
"YARN Diagnostics: "
],
"sc_type": "A",
"cluster_name": "test",
"queue": "test",
"create_time": 1531906043036,
"update_time": 1531906043036
}
Table 3 describes status codes.
If an error occurs when this API is called, the system does not return the result similar to the preceding example, but returns an error code and error message. For details, see Error Codes.