[ 
https://issues.apache.org/jira/browse/YARN-1001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766950#comment-13766950
 ] 

Zhijie Shen commented on YARN-1001:
-----------------------------------

Having talked to [~srimanth.gunturi] offline. Here's more specifications for 
the API:

1. The API takes exact one applicationType now. If we check there's no or more 
than one applicationType, we throw exception. We may work only multiple 
applicationTypes in the future.

2. The API takes zero to many states. If no state is specified, we enumerate 
all states of RMApp, and return the count of each state. If the states are 
specified, we just return the counts of these states.

3. We output the results as following:
{code}
<appStatInfo>
  <statItem>
    <state>submitted</state>
    <type>mapreduce</type>
    <count>10</count>
  </statItem>
  <statItem>
    <state>running</state>
    <type>mapreduce</type>
    <count>3</count>
  </statItem>
</appStatInfo>
{code}
We don't particularly list the total count, as it can be concluded by summing 
up all the counts, and it is not fit for the schema.
                
> 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
>            Priority: Blocker
>         Attachments: YARN-1001.1.patch, YARN-1001.2.patch, YARN-1001.3.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

Reply via email to