[ 
https://issues.apache.org/jira/browse/YARN-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kenji Kikushima updated YARN-1782:
----------------------------------

    Attachment: YARN-1782.patch

Attached a patch.
This patch introduces "yarn metrics -status" command which outputs like this.
{noformat}
$ yarn metrics -status
14/06/16 17:13:47 INFO client.RMProxy: Connecting to ResourceManager at 
/0.0.0.0:8032
14/06/16 17:13:48 WARN util.NativeCodeLoader: Unable to load native-hadoop 
library for your platform... using builtin-java classes where applicable
Cluster Metrics :
        appsSubmmitted : 2
        appsCompleted : 1
        appsPending : 0
        appsRunning : 1
        appsFailed : 0
        appsKilled : 0
        reservedMB : 0
        availableMB : 3072
        allocatedMB : 5120
        totalMB : 8192
        containersAllocated : 4
        containersReserved : 0
        containersPending : 0
        totalNodes : 1
        activeNodes : 1
        lostNodes : 0
        unhealthyNodes : 0
        decommissionedNodes : 0
        rebootedNodes : 0

{noformat}

> CLI should let users to query cluster metrics
> ---------------------------------------------
>
>                 Key: YARN-1782
>                 URL: https://issues.apache.org/jira/browse/YARN-1782
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Zhijie Shen
>         Attachments: YARN-1782.patch
>
>
> Like RM webUI and RESTful services, YARN CLI should also enable users to 
> query the cluster metrics.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to