Cloudera REST Api获取任务资源

时间:2016-08-31 11:12:49

标签: hadoop cloudera cloudera-cdh cloudera-manager bigdata

难以找到正确的API和URL,以便从Cloudera-Admin(CDH5)中针对特定应用程序获取Task资源。 我已经检查了它的API文档,但无法找到正确的API文档。任务详细信息可用于CDH4,如下所示。

https://archive.cloudera.com/cdh4/cdh/4/hadoop/hadoop-yarn/hadoop-yarn-site/MapredAppMasterRest.html#Task_API HTTP:///代理/ application_1326232085508_0004 / WS / V1 /映射精简/作业/ job_1326232085508_4_4 /任务

我正在寻找与CDH5相同的内容。

我可以帮忙吗。

1 个答案:

答案 0 :(得分:0)

Is this the one you are searching for: https://archive.cloudera.com/cdh5/cdh/5/hadoop/hadoop-yarn/hadoop-yarn-site/WebServicesIntro.html

http://host.domain.com:8088/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks

http://host.domain.com:8088/proxy/{appid}/ws/v1/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts

curl command is used in the examples given. I have removed the appid, jobid and taskid from the example and posted here.