开发者社区> 问答> 正文

E-MapReduce 如何查询作业列表?



ListJobs 查询作业列表



请求参数

字段类型是否必须默认值描述
RegionIdString
PageNumberInteger1请求页数,从1开始
PageSizeInteger10每页数量


返回参数

字段类型描述
JobsArray<Job>作业对象数组
TotalCountInteger总条数
PageNumberInteger当前页码
PageSizeInteger每页数量


示例



请求示例

  1. [backcolor=transparent]https[backcolor=transparent]:[backcolor=transparent]//emr.aliyuncs.com/?Action=ListJobs
  2. [backcolor=transparent]&[backcolor=transparent]RegionId[backcolor=transparent]=[backcolor=transparent]cn[backcolor=transparent]-[backcolor=transparent]hangzhou
  3. [backcolor=transparent]&[backcolor=transparent]PageNumber[backcolor=transparent]=[backcolor=transparent]1
  4. [backcolor=transparent]&[backcolor=transparent]PageSize[backcolor=transparent]=[backcolor=transparent]20
  5. [backcolor=transparent]&公共请求参数


返回格式


JSON 格式
  1. [backcolor=transparent]{
  2. [backcolor=transparent]    [backcolor=transparent]"requestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"43B20229-9FDE-434A-A03F-341416030E5C"[backcolor=transparent],
  3. [backcolor=transparent]    [backcolor=transparent]"data"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  4. [backcolor=transparent]        [backcolor=transparent]"Jobs"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  5. [backcolor=transparent]            [backcolor=transparent]"JobInfo"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  6. [backcolor=transparent]                [backcolor=transparent]{
  7. [backcolor=transparent]                    [backcolor=transparent]"FailAct"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"CONTINUE"[backcolor=transparent],
  8. [backcolor=transparent]                    [backcolor=transparent]"Id"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"J-13A570B821D4BAB3"[backcolor=transparent],
  9. [backcolor=transparent]                    [backcolor=transparent]"Name"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"TC-10117553"[backcolor=transparent],
  10. [backcolor=transparent]                    [backcolor=transparent]"RunParameter"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"--master yarn-client --driver-memory 1G --executor-memory 4G --executor-cores 4 --num-executors 10 --class com.aliyun.emr.checklist.benchmark.SPARKWordCount ossref://emr/checklist/jars/emr-checklist_2.10-0.1.0-newhadoop.jar  oss://emr/checklist/data/TC/10117548 oss://emr/checklist/data/TC/10117553 128 cn-hangzhou"[backcolor=transparent],
  11. [backcolor=transparent]                    [backcolor=transparent]"Type"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"SPARK"
  12. [backcolor=transparent]                [backcolor=transparent]},
  13. [backcolor=transparent]                [backcolor=transparent]{
  14. [backcolor=transparent]                    [backcolor=transparent]"FailAct"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"CONTINUE"[backcolor=transparent],
  15. [backcolor=transparent]                    [backcolor=transparent]"Id"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"J-13A570B821D4BAB3"[backcolor=transparent],
  16. [backcolor=transparent]                    [backcolor=transparent]"Name"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"TC-10117555"[backcolor=transparent],
  17. [backcolor=transparent]                    [backcolor=transparent]"RunParameter"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"--master yarn-client --driver-memory 1G --executor-memory 4G --executor-cores 4 --num-executors 10 --class com.aliyun.emr.checklist.benchmark.SPARKWordCount ossref://emr/checklist/jars/emr-checklist_2.10-0.1.0-newhadoop.jar  oss://emr/checklist/data/TC/10117549 oss://emr/checklist/data/TC/10117555 128 cn-hangzhou"[backcolor=transparent],
  18. [backcolor=transparent]                    [backcolor=transparent]"Type"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"SPARK"
  19. [backcolor=transparent]                [backcolor=transparent]},
  20. [backcolor=transparent]                [backcolor=transparent]{
  21. [backcolor=transparent]                    [backcolor=transparent]"FailAct"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"STOP"[backcolor=transparent],
  22. [backcolor=transparent]                    [backcolor=transparent]"Id"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"J-13A570B821D4BAB3"[backcolor=transparent],
  23. [backcolor=transparent]                    [backcolor=transparent]"Name"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"PIG"[backcolor=transparent],
  24. [backcolor=transparent]                    [backcolor=transparent]"RunParameter"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"modifyParamTcV2"[backcolor=transparent],
  25. [backcolor=transparent]                    [backcolor=transparent]"Type"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"PIG"
  26. [backcolor=transparent]                [backcolor=transparent]}
  27. [backcolor=transparent]            [backcolor=transparent]]
  28. [backcolor=transparent]        [backcolor=transparent]},
  29. [backcolor=transparent]        [backcolor=transparent]"PageNumber"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1[backcolor=transparent],
  30. [backcolor=transparent]        [backcolor=transparent]"PageSize"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]10[backcolor=transparent],
  31. [backcolor=transparent]        [backcolor=transparent]"TotalCount"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]3
  32. [backcolor=transparent]    [backcolor=transparent]}
  33. [backcolor=transparent]}

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

相关电子书

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