Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7975

Add an optional arg to yarn cluster -list-node-labels to list nodes collection partitioned by labels

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      Since we have "yarn cluster -lnl" to print all nodelabels info .But it's not enough,we should be abale to list nodes collection partitioned by labels,especially in large cluster.

      So  I propose to add an optional argument  "-nodes" for  "yarn cluster -lnl" to achieve this.

      e.g.

      [yarn@docker1 ~]$ yarn cluster -lnl -nodes
      Node Labels Num: 3
                    Labels                                               Nodes
      <tensorflow:exclusivity=true>           docker1:45454, docker5:45454
      <spark:exclusivity=true>                   docker2:45454
      <impala:exclusivity=true>                 docker3:45454

        Attachments

        1. YARN-7975_1.patch
          10 kB
          Shen Yinjie
        2. YARN-7975.patch
          4 kB
          Shen Yinjie

          Issue Links

            Activity

              People

              • Assignee:
                shenyinjie Shen Yinjie
                Reporter:
                shenyinjie Shen Yinjie
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: