[ https://issues.apache.org/jira/browse/MAPREDUCE-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133119#comment-13133119 ]
Thomas Graves commented on MAPREDUCE-2863: ------------------------------------------ Putting this up in its rough form now as I will be unavailable next week. the apis so far. These mostly follow the same information you can get from the web ui. its very easy to change these if for instance we want to prefix everything like web ui does where rm has cluster/ and jobhistory has jobhistory/, etc. All prefixed with: <host:port>/ws/v1 The v1 is intended to be version number. NodeManager apis: nothing and /node – both node info /apps /apps/{appid} /containers /containers/{containerid} ResourceManager apis: nothing and /cluster – both cluster info /nodes - query params –> state and healthy /nodes/{nodeid} /cluster/metrics /cluster/metrics/{username} /scheduler /apps – query params –> state, user, queue /apps/{appid} History Server apis: Nothing and /jobhistory – both info /jobs – query params -> user, count, startRangeBegin, startRangeEnd, finishRangeBegin, finishRangeEnd /jobs/{jobid} /jobs/{jobid}/counters /jobs/{jobid}/counters/{group}/{countername} /jobs/{jobid}/task/{taskid}/counters /jobs/{jobid}/task/{taskid}/counters/{group}/{counterName} /jobs/{jobid}/conf /jobs/{jobid}/tasks – query params -> type /jobs/{jobid}/tasks/{taskid} /jobs/{jobid}/tasks/{taskid}/attempts /jobs/{jobid}/tasks/{taskid}/attempts/{attemptid} App master apis: Nothing and /app – info /jobs – query params -> user /jobs/{jobid} /jobs/{jobid}/counters /jobs/{jobid}/counters/{group}/{countername} /jobs/{jobid}/task/{taskid}/counters /jobs/{jobid}/task/{taskid}/counters/{group}/{counterName} /jobs/{jobid}/conf /jobs/{jobid}/tasks – query params -> type /jobs/{jobid}/tasks/{taskid} /jobs/{jobid}/tasks/{taskid}/attempts /jobs/{jobid}/tasks/{taskid}/attempts/{attemptid} Examples: $ curl -H "Accept: application/json" -X GET "http://virt09-pv1.tgraves.pool.corp.sp2.yahoo.com:8088/ws/v1" {"resourceManagerVersion":"0.23.0-SNAPSHOT from 1186754 by tgraves source checksum 7177a1bc32bef338f8b6e53b7748c833","resourceManagerVersionBuiltOn":"Fri Oct 21 19:15:31 UTC 2011","state":"STARTED","clusterId":1319225298687,"rmversion":"0.23.0-SNAPSHOT from 1186754 by tgraves source checksum 7177a1bc32bef338f8b6e53b7748c833","rmversionBuiltOn":"Fri Oct 21 19:15:31 UTC 2011","hadoopVersion":"0.23.0-SNAPSHOT from 1186549 by tgraves source checksum fa38f63ebd928cf30315537e69a4408e","hadoopVersionBuiltOn":"Thu Oct 20 16:06:26 UTC 2011","startedOn":1319225298687} $ curl -H "Accept: application/xml" -X GET "http://virt09-pv1.tgraves.pool.corp.sp2.yahoo.com:8088/ws/v1" <?xml version="1.0" encoding="UTF-8" standalone="yes"?><clusterInfo><clusterId>1319224780948</clusterId><startedOn>1319224780948</startedOn><state>STARTED</state><resourceManagerVersion>0.23.0-SNAPSHOT from 1186754 by tgraves source checksum 6a15648a61a493134b0374721840a897</resourceManagerVersion><resourceManagerVersionBuiltOn>Fri Oct 21 19:12:00 UTC 2011</resourceManagerVersionBuiltOn><hadoopVersion>0.23.0-SNAPSHOT from 1186549 by tgraves source checksum fa38f63ebd928cf30315537e69a4408e</hadoopVersion><hadoopVersionBuiltOn>Thu Oct 20 16:06:26 UTC 2011</hadoopVersionBuiltOn></clusterInfo> Example using query params of job history: http://virt09-pv1.tgraves.pool.corp.sp2.yahoo.com:19888/ws/v1/jobs?startRangeBegin=1319127482162&startRangeEnd=1319171407165 > Support web-services for RM & NM > -------------------------------- > > Key: MAPREDUCE-2863 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2863 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Components: mrv2, nodemanager, resourcemanager > Reporter: Arun C Murthy > Assignee: Thomas Graves > Attachments: MAPREDUCE-2863.patch > > > It will be very useful for RM and NM to support web-services to export > json/xml. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira