开发者社区> 问答> 正文

E-MapReduce 如何创建作业?



CreateJob 创建作业



请求参数

字段类型是否必须默认值描述
NameString作业名称
TypeString作业类型,HADOOP,SPARK,HIVE,PIG
RunParameterString作业的参数
FailActString失败后的操作。STOP:停止,CONTINUE:继续后续的作业
RegionIdString


返回参数

字段类型描述
IdString作业Id


示例



请求示例

  1. [backcolor=transparent]https[backcolor=transparent]:[backcolor=transparent]//emr.aliyuncs.com/?Action=CreateJob
  2. [backcolor=transparent]&[backcolor=transparent]Name[backcolor=transparent]=[backcolor=transparent]CreateJobApiTest[backcolor=transparent]-[backcolor=transparent]SPARK
  3. [backcolor=transparent]&[backcolor=transparent]Type[backcolor=transparent]=[backcolor=transparent]SPARK
  4. [backcolor=transparent]&[backcolor=transparent]EnvParam[backcolor=transparent]=--[backcolor=transparent]class[backcolor=transparent]%[backcolor=transparent]20org[backcolor=transparent].[backcolor=transparent]apache[backcolor=transparent].[backcolor=transparent]spark[backcolor=transparent].[backcolor=transparent]examples[backcolor=transparent].[backcolor=transparent]SparkPi[backcolor=transparent]%[backcolor=transparent]20[backcolor=transparent]--[backcolor=transparent]master[backcolor=transparent]%[backcolor=transparent]20yarn[backcolor=transparent]-[backcolor=transparent]client[backcolor=transparent]%[backcolor=transparent]20[backcolor=transparent]%[backcolor=transparent]E2[backcolor=transparent]%[backcolor=transparent]80[backcolor=transparent]%[backcolor=transparent]93num[backcolor=transparent]-[backcolor=transparent]executors[backcolor=transparent]%[backcolor=transparent]202[backcolor=transparent]%[backcolor=transparent]20[backcolor=transparent]--[backcolor=transparent]executor[backcolor=transparent]-[backcolor=transparent]memory[backcolor=transparent]%[backcolor=transparent]202g[backcolor=transparent]%[backcolor=transparent]20[backcolor=transparent]--[backcolor=transparent]executor[backcolor=transparent]-[backcolor=transparent]cores[backcolor=transparent]%[backcolor=transparent]202[backcolor=transparent]%[backcolor=transparent]20[backcolor=transparent]/[backcolor=transparent]opt[backcolor=transparent]/[backcolor=transparent]apps[backcolor=transparent]/[backcolor=transparent]spark[backcolor=transparent]-[backcolor=transparent]1.6[backcolor=transparent].[backcolor=transparent]0[backcolor=transparent]-[backcolor=transparent]bin[backcolor=transparent]-[backcolor=transparent]hadoop2[backcolor=transparent].[backcolor=transparent]6[backcolor=transparent]/[backcolor=transparent]lib[backcolor=transparent]/[backcolor=transparent]spark[backcolor=transparent]-[backcolor=transparent]examples[backcolor=transparent]*.[backcolor=transparent]jar[backcolor=transparent]%[backcolor=transparent]2010
  5. [backcolor=transparent]&[backcolor=transparent]FailAct[backcolor=transparent]=[backcolor=transparent]STOP
  6. [backcolor=transparent]&[backcolor=transparent]RegionId[backcolor=transparent]=[backcolor=transparent]cn[backcolor=transparent]-[backcolor=transparent]hangzhou
  7. [backcolor=transparent]&公共请求参数


返回格式


JSON 格式
  1. [backcolor=transparent]{
  2. [backcolor=transparent]    [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"34B08619-2636-49F9-AB4E-CD8D347B1E07"[backcolor=transparent],
  3. [backcolor=transparent]    [backcolor=transparent]"InstanceId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"J-13A570B821D4BAB3"
  4. [backcolor=transparent]}

展开
收起
nicenelly 2017-10-27 16:32:00 2178 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
阿里云E-MapReduce 立即下载
\"Hadoop的过去现在和未来——从阿里云梯到E-MapReduce \" 立即下载
大数据解决方案构建详解 以阿里云E-MapReduce为例 立即下载