hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manikandan R (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7119) yarn rmadmin -updateNodeResource should be updated for resource types
Date Fri, 29 Sep 2017 13:04:02 GMT

    [ 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

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

View raw message