You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Varun Saxena (JIRA)" <ji...@apache.org> on 2014/12/17 19:45:14 UTC

[jira] [Commented] (YARN-2970) NodeLabel operations in RMAdmin CLI get missing in help command.

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

Varun Saxena commented on YARN-2970:
------------------------------------

Attaching a trivial patch. Now the help would look as under(in Non HA mode). Pls note I have clubbed the option {{directlyAccessNodeLabelStore}} with other node label options as this option would only work with other node label CLI commands.
{code}
yarn rmadmin [-refreshQueues] [-refreshNodes] [-refreshSuperUserGroupsConfiguration] [-refreshUserToGroupsMappings] [-refreshAdminAcls] [-refreshServiceAcl] [-getGroup [username]] [[-addToClusterNodeLabels [label1,label2,label3]] [-removeFromClusterNodeLabels [label1,label2,label3]] [-replaceLabelsOnNode [node1:port,label1,label2 node2:port,label1] [-directlyAccessNodeLabelStore]] [-help [cmd]]

   -refreshQueues: Reload the queues' acls, states and scheduler specific properties.
                ResourceManager will reload the mapred-queues configuration file.
   -refreshNodes: Refresh the hosts information at the ResourceManager.
   -refreshSuperUserGroupsConfiguration: Refresh superuser proxy groups mappings
   -refreshUserToGroupsMappings: Refresh user-to-groups mappings
   -refreshAdminAcls: Refresh acls for administration of ResourceManager
   -refreshServiceAcl: Reload the service-level authorization policy file.
                ResoureceManager will reload the authorization policy file.
   -getGroups [username]: Get the groups which given user belongs to.
   -help [cmd]: Displays help for the given command or all commands if none is specified.
   -addToClusterNodeLabels [label1,label2,label3] (label splitted by ","): add to cluster node labels
   -removeFromClusterNodeLabels [label1,label2,label3] (label splitted by ","): remove from cluster node labels
   -replaceLabelsOnNode [node1:port,label1,label2 node2:port,label1,label2]: replace labels on nodes
   -directlyAccessNodeLabelStore: Directly access node label store, with this option, all node label related operations will not connect RM. Instead, they will access/modify stored node labels directly. By default, it is false (access via RM). AND PLEASE NOTE: if you configured yarn.node-labels.fs-store.root-dir to a local directory (instead of NFS or HDFS), this option will only work when the command run on the machine where RM is running.
{code}

> NodeLabel operations in RMAdmin CLI get missing in help command.
> ----------------------------------------------------------------
>
>                 Key: YARN-2970
>                 URL: https://issues.apache.org/jira/browse/YARN-2970
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: api, client, resourcemanager
>    Affects Versions: 2.6.0
>            Reporter: Junping Du
>            Assignee: Varun Saxena
>            Priority: Minor
>         Attachments: YARN-2970.patch
>
>
> NodeLabel operations in RMAdmin CLI get missing in help command when I am debugging YARN-313, we should add them on as other cmds:
> {noformat} 
> yarn rmadmin [-refreshQueues] [-refreshNodes] [-refreshResources] [-refreshSuperUserGroupsConfiguration] [-refreshUserToGroupsMappings] [-refreshAdminAcls] [-refreshServiceAcl] [-getGroup [username]] [-updateNodeResource [NodeID] [MemSize] [vCores] ([OvercommitTimeout]) [-help [cmd]]
>    -refreshQueues: Reload the queues' acls, states and scheduler specific properties.
>                 ResourceManager will reload the mapred-queues configuration file.
>    -refreshNodes: Refresh the hosts information at the ResourceManager.
>    -refreshResources: Refresh resources of NodeManagers at the ResourceManager.
>    -refreshSuperUserGroupsConfiguration: Refresh superuser proxy groups mappings
>    -refreshUserToGroupsMappings: Refresh user-to-groups mappings
>    -refreshAdminAcls: Refresh acls for administration of ResourceManager
>    -refreshServiceAcl: Reload the service-level authorization policy file.
>                 ResoureceManager will reload the authorization policy file.
>    -getGroups [username]: Get the groups which given user belongs to.
>    -updateNodeResource [NodeID] [MemSize] [vCores] ([OvercommitTimeout]): Update resource on specific node.
>    -help [cmd]: Displays help for the given command or all commands if none is specified.
>    -addToClusterNodeLabels [label1,label2,label3] (label splitted by ","): add to cluster node labels
>    -removeFromClusterNodeLabels [label1,label2,label3] (label splitted by ","): remove from cluster node labels
>    -replaceLabelsOnNode [node1:port,label1,label2 node2:port,label1,label2]: replace labels on nodes
>    -directlyAccessNodeLabelStore: Directly access node label store, with this option, all node label related operations will not connect RM. Instead, they will access/modify stored node labels directly. By default, it is false (access via RM). AND PLEASE NOTE: if you configured yarn.node-labels.fs-store.root-dir to a local directory (instead of NFS or HDFS), this option will only work when the command run on the machine where RM is running.
> {noformat}



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