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

Sunil G updated YARN-4292:
--------------------------
    Attachment: 0004-YARN-4292.patch

As YARN-3980 is in, making necessary changes and updating a new version of 
patch.
Also attaching REST o/p (xml)
{noformat}
<nodes>
  <node>
   <rack>/default-rack</rack>
   <state>RUNNING</state>
   <id>localhost:25006</id> 
   <nodeHostName>localhost</nodeHostName>
   <nodeHTTPAddress>localhost:25008</nodeHTTPAddress>
   <lastHealthUpdate>1448467127146</lastHealthUpdate>
   <version>3.0.0-SNAPSHOT</version>
   <healthReport/>
   <numContainers>0</numContainers>
   <usedMemoryMB>0</usedMemoryMB>
   <availMemoryMB>8192</availMemoryMB>
   <usedVirtualCores>0</usedVirtualCores>
   <availableVirtualCores>8</availableVirtualCores>
   <resourceUtilization>
     <nodePhysicalMemoryMB>4430</nodePhysicalMemoryMB>
     <nodeVirtualMemoryMB>4446</nodeVirtualMemoryMB>
     <nodeCPUUsage>18.49383544921875</nodeCPUUsage>
     <containersPhysicalMemoryMB>0</containersPhysicalMemoryMB>
     <containersVirtualMemoryMB>0</containersVirtualMemoryMB>
     <containersCPUUsage>0.0</containersCPUUsage>
   </resourceUtilization>
 </node>
</nodes>
{noformat}
normal o/p
{noformat}
nodes: {
node: [1]
0:  {
rack: "/default-rack"
state: "RUNNING"
id: "localhost:25006"
nodeHostName: "localhost"
nodeHTTPAddress: "localhost:25008"
lastHealthUpdate: 1448467007146
version: "3.0.0-SNAPSHOT"
healthReport: ""
numContainers: 0
usedMemoryMB: 0
availMemoryMB: 8192
usedVirtualCores: 0
availableVirtualCores: 8
resourceUtilization: {
 nodePhysicalMemoryMB: 4384
 nodeVirtualMemoryMB: 4399
 nodeCPUUsage: 6.99766731262207
 containersPhysicalMemoryMB: 0
 containersVirtualMemoryMB: 0
 containersCPUUsage: 0
}-
}

[~leftnoteasy], could you please check.
-
}-
{noformat}

> ResourceUtilization should be a part of NodeInfo REST API
> ---------------------------------------------------------
>
>                 Key: YARN-4292
>                 URL: https://issues.apache.org/jira/browse/YARN-4292
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Wangda Tan
>            Assignee: Sunil G
>         Attachments: 0001-YARN-4292.patch, 0002-YARN-4292.patch, 
> 0003-YARN-4292.patch, 0004-YARN-4292.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to