开发者社区> 问答> 正文

E-MapReduce 如何查询执行计划实例?



ListExecutionPlanInstances 查询执行计划实例



请求参数

字段类型是否必须默认值描述
IdString执行计划Id
RegionIdString
ExecutionPlanIdListArray<String>查询的执行计划的Id列表,字符串数组,例如:[“WF-5D93B00901730B5E”,”WF-5D93B0090173ABCD”]
OnlyLastInstanceBooleanfalseonlyLastInstance为ture的时候,表示返回执行计划id列表里面的所有执行计划的最近一次执行计划运行记录(即实例)。如果设置onlyLastInstance为true,不需要再设置pagename和pagesize参数,设置了也不会生效。
PageNumberInteger1请求的页码
PageSizeInteger10请求的每页数量


返回参数

字段类型描述
ExecutionPlanInstancesArray<ExecutionPlanInstance>执行计划实例数据
TotalCountInteger总条数
PageNumberInteger当前页码
PageSizeInteger请求的每页数量


示例



请求示例

  1. [backcolor=transparent]https[backcolor=transparent]:[backcolor=transparent]//emr.aliyuncs.com/?Action=ListExecutionPlanInstances
  2. [backcolor=transparent]&[backcolor=transparent]ExecutionPlanIdList[backcolor=transparent]=%[backcolor=transparent]5B[backcolor=transparent]%[backcolor=transparent]22WF[backcolor=transparent]-[backcolor=transparent]5D93B00901730B5E[backcolor=transparent]%[backcolor=transparent]22[backcolor=transparent]%[backcolor=transparent]2C[backcolor=transparent]%[backcolor=transparent]22WF[backcolor=transparent]-[backcolor=transparent]5D93B0090173ABCD[backcolor=transparent]%[backcolor=transparent]22[backcolor=transparent]%[backcolor=transparent]5D
  3. [backcolor=transparent]&[backcolor=transparent]OnlyLastInstance[backcolor=transparent]=[backcolor=transparent]true
  4. [backcolor=transparent]&[backcolor=transparent]PageNumber[backcolor=transparent]=[backcolor=transparent]1
  5. [backcolor=transparent]&[backcolor=transparent]PageSize[backcolor=transparent]=[backcolor=transparent]50
  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]"code"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"200"[backcolor=transparent],
  3. [backcolor=transparent]    [backcolor=transparent]"data"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  4. [backcolor=transparent]        [backcolor=transparent]"ExecutionPlanInstances"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]{
  5. [backcolor=transparent]            [backcolor=transparent]"ExecutionPlanInstance"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent][
  6. [backcolor=transparent]                [backcolor=transparent]{
  7. [backcolor=transparent]                    [backcolor=transparent]"ClusterId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"C-3C0EAC0AEB3505E0"[backcolor=transparent],
  8. [backcolor=transparent]                    [backcolor=transparent]"ClusterName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"b"[backcolor=transparent],
  9. [backcolor=transparent]                    [backcolor=transparent]"ClusterType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2"[backcolor=transparent],
  10. [backcolor=transparent]                    [backcolor=transparent]"ExecutionPlanId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"WF-5D93B00901730B5E"[backcolor=transparent],
  11. [backcolor=transparent]                    [backcolor=transparent]"ExecutionPlanName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"smoketest_hivejoinonoss_existcluster"[backcolor=transparent],
  12. [backcolor=transparent]                    [backcolor=transparent]"Id"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1"[backcolor=transparent],
  13. [backcolor=transparent]                    [backcolor=transparent]"LogEnable"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],
  14. [backcolor=transparent]                    [backcolor=transparent]"LogPath"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"oss://emr/logs"[backcolor=transparent],
  15. [backcolor=transparent]                    [backcolor=transparent]"RunTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]259[backcolor=transparent],
  16. [backcolor=transparent]                    [backcolor=transparent]"StartTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1455440610718[backcolor=transparent],
  17. [backcolor=transparent]                    [backcolor=transparent]"Status"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"SUCCESS"
  18. [backcolor=transparent]                [backcolor=transparent]},
  19. [backcolor=transparent]                [backcolor=transparent]{
  20. [backcolor=transparent]                    [backcolor=transparent]"ClusterId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"C-ADCAAC0AEB350081"[backcolor=transparent],
  21. [backcolor=transparent]                    [backcolor=transparent]"ClusterName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"Cluster_OnDemandWithHourSchedual"[backcolor=transparent],
  22. [backcolor=transparent]                    [backcolor=transparent]"ClusterType"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2"[backcolor=transparent],
  23. [backcolor=transparent]                    [backcolor=transparent]"ExecutionPlanId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"WF-5D93B0090173ABCD"[backcolor=transparent],
  24. [backcolor=transparent]                    [backcolor=transparent]"ExecutionPlanName"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"EP_onDemandWithHourSchedual"[backcolor=transparent],
  25. [backcolor=transparent]                    [backcolor=transparent]"Id"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"2"[backcolor=transparent],
  26. [backcolor=transparent]                    [backcolor=transparent]"LogEnable"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true[backcolor=transparent],
  27. [backcolor=transparent]                    [backcolor=transparent]"LogPath"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"oss://genmao"[backcolor=transparent],
  28. [backcolor=transparent]                    [backcolor=transparent]"RunTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]297[backcolor=transparent],
  29. [backcolor=transparent]                    [backcolor=transparent]"StartTime"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1454585142032[backcolor=transparent],
  30. [backcolor=transparent]                    [backcolor=transparent]"Status"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"SUCCESS"
  31. [backcolor=transparent]                [backcolor=transparent]}
  32. [backcolor=transparent]            [backcolor=transparent]]
  33. [backcolor=transparent]        [backcolor=transparent]},
  34. [backcolor=transparent]        [backcolor=transparent]"PageNumber"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]1[backcolor=transparent],
  35. [backcolor=transparent]        [backcolor=transparent]"PageSize"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]2[backcolor=transparent],
  36. [backcolor=transparent]        [backcolor=transparent]"RequestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1436ECB1-C06B-4DA4-92FF-387D94190340"[backcolor=transparent],
  37. [backcolor=transparent]        [backcolor=transparent]"TotalCount"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]2
  38. [backcolor=transparent]    [backcolor=transparent]},
  39. [backcolor=transparent]    [backcolor=transparent]"requestId"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]"1436ECB1-C06B-4DA4-92FF-387D94190340"[backcolor=transparent],
  40. [backcolor=transparent]    [backcolor=transparent]"successResponse"[backcolor=transparent]:[backcolor=transparent] [backcolor=transparent]true
  41. [backcolor=transparent]}

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

相关电子书

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