0

Getting difficulties to find the correct API and URL to fetch the Task resource against a particular application from Cloudera-Admin (CDH5). I have already checked it's API doc for the same, but unable to find the correct one. Task details was available for CDH4 as below.

https://archive.cloudera.com/cdh4/cdh/4/hadoop/hadoop-yarn/hadoop-yarn-site/MapredAppMasterRest.html#Task_API http:///proxy/application_1326232085508_0004/ws/v1/mapreduce/jobs/job_1326232085508_4_4/task

I am looking for the same with CDH5.

May I have any help on it.

Community
  • 1
  • 1
abhijit nag
  • 451
  • 6
  • 24

1 Answers1

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.

Marco99
  • 1,639
  • 1
  • 19
  • 32
  • Thanks Marc, I was looking for this. But apart from getting JSON response from REST URL, is there any other way to use API in code to get the "Task Details" of a job. I have already used "com.cloudera.api" package to query and fetch job details from Cloudera manger, but don't know how to get the task details of a job. – abhijit nag Sep 01 '16 at 10:03
  • @abhijitnag : I think you are talking about RESTful-java-client. You can try out Jersey library https://jersey.java.net/documentation/latest/client.html – Marco99 Sep 01 '16 at 11:04
  • No Marc, I am looking for REST service exposed from Cloudera, not the client. As I have already used "http://cloudera.github.io/cm_api/apidocs/v10/" for the same, but this API doesn't provide any information on Task detail for job. – abhijit nag Sep 01 '16 at 13:23
  • @abhijitnag : You mentioned in your first comment that you want to "fetch job details from Cloudera manager". This means you want to be a consumer and so I mentioned of RESTful client. Is my understanding correct? – Marco99 Sep 01 '16 at 14:31