Wangda Tan commented on YARN-2786:

And I propose to have usage:
usage: yarn node-labels
 -d,--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
                                     oot-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.
 -h,--help                           Displays help for all commands.
 -l,--listLabels                     List cluster node-label collection
 -m,--listMappings                   List node-to-label mappings of the
                                     cluster, by default it will return
                                     all node-to-labels mappings of the
 -n,--nodeId <arg>                   Works with -listMappings, followed by
                                     nodeId (host:port) or node (host) it
                                     will return node to label mappings
                                     when this specified. Without this
                                     option, all node to labels mappings
                                     will be returned

Sounds good? :)

> Create yarn node-labels CLI to enable list node labels collection and node 
> labels mapping
> -----------------------------------------------------------------------------------------
>                 Key: YARN-2786
>                 URL: https://issues.apache.org/jira/browse/YARN-2786
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: api, client, resourcemanager
>            Reporter: Wangda Tan
>            Assignee: Wangda Tan
> With YARN-2778, we can list node labels on existing RM nodes. But it is not 
> enough, we should be able to: 
> 1) list node labels collection 
> 2) list node-to-label mappings even if the node hasn't registered to RM.
> The command should start with "yarn node-labels ..."

This message was sent by Atlassian JIRA

Reply via email to