edit-icon download-icon

Create a job

Last Updated: Mar 29, 2017

Create a job.

Request parameters

Field Type Required? Default Value Description
Name String Yes None Job name.
Type String Yes None Job type, HADOOP, SPARK, HIVE, PIG and so on.
RunParameter String Yes None Job parameters.
FailAct String Yes None Operation after failures. STOP: stop, CONTINUE: continue the follow-up jobs.
RegionId String Yes None The region ID of the job.

Returned parameters

Field Type Description
Id String Job ID.


Request example

  1. https://emr.aliyuncs.com/?Action=CreateJob
  2. &Name=CreateJobApiTest-SPARK
  3. &Type=SPARK
  4. &EnvParam=--class%20org.apache.spark.examples.SparkPi%20--master%20yarn-client%20%E2%80%93num-executors%202%20--executor-memory%202g%20--executor-cores%202%20/opt/apps/spark-1.6.0-bin-hadoop2.6/lib/spark-examples*.jar%2010
  5. &FailAct=STOP
  6. &RegionId=cn-hangzhou
  7. &Public request parameters

Returned format

JSON format

  1. {
  2. "RequestId": "34B08619-2636-49F9-AB4E-CD8D347B1E07",
  3. "InstanceId": "J-13A570B821D4BAB3"
  4. }
Thank you! We've received your feedback.