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

Sunil G commented on YARN-7817:
-------------------------------

Thanks [~bibinchundatt].

 

I changed in a bit different way.
{code:java}
"usedResource": {
"memory": 0,
"vCores": 0,
"resourcesInformations": {
"resourceInformations": [
{
"maximumAllocation": 9223372036854775807,
"minimumAllocation": 0,
"name": "memory-mb",
"resourceType": "COUNTABLE",
"units": "Mi",
"value": 0
},
{
"maximumAllocation": 9223372036854775807,
"minimumAllocation": 0,
"name": "vcores",
"resourceType": "COUNTABLE",
"units": "",
"value": 0
}
]
}
},
"availableResource": {
"memory": 8192,
"vCores": 8,
"resourcesInformations": {
"resourceInformations": [
{
"maximumAllocation": 9223372036854775807,
"minimumAllocation": 0,
"name": "memory-mb",
"resourceType": "COUNTABLE",
"units": "Mi",
"value": 8192
},
{
"maximumAllocation": 9223372036854775807,
"minimumAllocation": 0,
"name": "vcores",
"resourceType": "COUNTABLE",
"units": "",
"value": 8
}
]
}
}{code}

> Add Resource reference to RM's NodeInfo object so REST API can get non 
> memory/vcore resource usages.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: YARN-7817
>                 URL: https://issues.apache.org/jira/browse/YARN-7817
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Sumana Sathish
>            Assignee: Wangda Tan
>            Priority: Major
>         Attachments: YARN-7817.001.patch, YARN-7817.002.patch, 
> YARN-7817.003.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to