[ https://issues.apache.org/jira/browse/YARN-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhijie Shen updated YARN-1001: ------------------------------ Attachment: YARN-1001.1.patch I created a patch, which add a new RESTful API: {code} http://<rm http address:port>/ws/v1/cluster/appscount?states=state1,state2&types=type1,type2 {code} Bellow is the example response in JSON format: {code} { "appsCount": { "countItems": [ {"state":"accepted","type":"other","count":1}, {"state":"accepted","type":"mapreduce","count":1}, {"state":"finished","type":"other","count":0}, {"state":"finished","type":"mapreduce","count":1} ] } } {code} Three aspects need to be clarified: * The combination bucket that has 0 apps is listed as well * State and type matching ignores the case. * Two forms of params are allowed for both types and states: states=state1&states=state2,state3&types=type1&types=type2,type3 > YARN should provide per application-type and state statistics > ------------------------------------------------------------- > > Key: YARN-1001 > URL: https://issues.apache.org/jira/browse/YARN-1001 > Project: Hadoop YARN > Issue Type: Task > Components: api > Affects Versions: 2.1.0-beta > Reporter: Srimanth Gunturi > Assignee: Zhijie Shen > Attachments: YARN-1001.1.patch > > > In Ambari we plan to show for MR2 the number of applications finished, > running, waiting, etc. It would be efficient if YARN could provide per > application-type and state aggregated counts. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira