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

Manikandan R commented on YARN-7119:
------------------------------------

[~sunilg] Thanks for your suggestions.

Attaching patch for the same. Overall approach is to accept the args for 
resource types (For example, 
\[memory-mb=1024Mi,vcores=1,resource1=3Gi,resource2=2]) and captures the same 
in a file similar to node-resources.xml so that 
{{NodeManagerHardwareUtils#getNodeResources}} method can be reused to get the 
{{Resource}} object and pass it to the remaining flow - 
{{ResourceManagerAdministrationProtocol}}. To ensure backward compatibility, 
even when yarn.resourcemanager.resource-profiles.enabled has been set to true, 
still params of format: 

\[NodeID] \[MemSize] \[vCores]

would be accepted and processed. Yes, we will need to take care of doc changes 
as well.

> yarn rmadmin -updateNodeResource should be updated for resource types
> ---------------------------------------------------------------------
>
>                 Key: YARN-7119
>                 URL: https://issues.apache.org/jira/browse/YARN-7119
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: nodemanager, resourcemanager
>    Affects Versions: YARN-3926
>            Reporter: Daniel Templeton
>         Attachments: YARN-7119.001.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to