You can call this operation to submit a job. You can only run a job instance at a time.

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 SubmitFlowJob

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

ClusterId String Yes C-F32FB31D82954C64

The ID of the cluster.

JobId String Yes FJ-1A2FB31D82954C64

The ID of the job.

ProjectId String Yes FP-3535FE0BE5224A47

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region where your project resides.

Conf String No {"key":"value"}

The configuration parameters of the job, for example, {"key1":"value1"}. The value of the key named params replaces the content of the job.

HostName String No emr-header-1.cluster-12345

The name of the host on which the job instance is running. The host can be a master host or a gateway host. The format of the hostname is emr-header-1.cluster-12345. You can use the hostname command to view this parameter value.

Response parameters

Parameter Type Example Description
Id String FJI-9DDAAA3ADA5F6FA2

The ID of the job instance.

RequestId String B46F8A2A-B46B-415C-8A9C-B01B99B775A2

The ID of the request.

Examples

Sample requests


http(s)://[Endpoint]/? Action=SubmitFlowJob
&ClusterId=C-F32FB31D82954C64
&JobId=FJ-1A2FB31D82954C64
&ProjectId=FP-3535FE0BE5224A47
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<SubmitFlowJobResponse>
  <RequestId>B46F8A2A-B46B-415C-8A9C-B01B99B775A2</RequestId>
	  <Id>FJI-9DDAAA3ADA5F****</Id>
</SubmitFlowJobResponse>

JSON format

{
	"RequestId":"B46F8A2A-B46B-415C-8A9C-B01B99B775A2",
	"Id":"FJI-9DDAAA3ADA5F****"
}

Error codes

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