Executing a Job Object

Function

This API is used to execute a created job object. This API is compatible with Sahara.

URI

Request

Table 2 Request parameter description

Parameter

Mandatory

Type

Description

cluster_id

Yes

String

Cluster ID

input_id

Yes

String

Input data source ID of a job object

For details on how to obtain the input data source ID, see Creating a Data Source.

output_id

Yes

String

Output data source ID of a job object

For details on how to obtain the output data source ID, see Creating a Data Source.

is_protected

No

Bool

Whether a job object is protected

  • true
  • false

The current version does not support this function.

is_public

No

Bool

Whether a job object is public

  • true
  • false

The current version does not support this function.

job_configs

Yes

Object

Key-value pair set for saving job running configurations

If the job type is MapReduce or Spark, set the first parameter of args to be the same as the arguments parameter in Adding a Job and Executing the Job.

Response

Table 3 Response parameter description

Parameter

Type

Description

output_id

String

Output data source ID of a job object

info

Object

Job object status information

job_id

String

Job object ID

tenant_id

String

Project ID. For details on how to obtain the project ID, see Obtaining a Project ID.

created_at

String

Job object creation time

updated_at

String

Job object update time

return_code

String

Response code after job execution

oozie_job_id

String

Workflow ID returned by Oozie

is_protected

Bool

Whether a job object is protected

  • true
  • false

The current version does not support this function.

input_id

String

Input data source ID of a job object

cluster_id

String

Cluster ID

is_public

Bool

Whether a job object is public

  • true
  • false

The current version does not support this function.

job_configs

Object

Key-value pair set for saving job running configurations

id

String

Job object ID

Example

Status Code

Table 4 describes the status code of this API.

Table 4 Status code

Status code

Description

202

The job object has been executed successfully.

For the description about error status codes, see Status Codes.