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

yarn node CLI help should be clearer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: client
    • Labels:
      None

      Description

      Current message is:

      usage: node
       -all               Works with -list to list all nodes.
       -list              List all running nodes. Supports optional use of
                          -states to filter nodes based on node state, all -all
                          to list all nodes.
       -states <States>   Works with -list to filter nodes based on input
                          comma-separated list of node states.
       -status <NodeId>   Prints the status report of the node.
      

      It should be either this:

      usage: yarn node [-list [-states <States>|-all] | -status <NodeId>]
      
       -all               Works with -list to list all nodes.
       -list              List all running nodes. Supports optional use of
                          -states to filter nodes based on node state, all -all
                          to list all nodes.
       -states <States>   Works with -list to filter nodes based on input
                          comma-separated list of node states.
       -status <NodeId>   Prints the status report of the node.
      

      or that.

      usage: yarn node -list [-states <States>|-all] 
             yarn node -status <NodeId>
      
       -all               Works with -list to list all nodes.
       -list              List all running nodes. Supports optional use of
                          -states to filter nodes based on node state, all -all
                          to list all nodes.
       -states <States>   Works with -list to filter nodes based on input
                          comma-separated list of node states.
       -status <NodeId>   Prints the status report of the node.
      

      The latter is the least ambiguous.

        Attachments

        1. YARN-5820.01.patch
          0.8 kB
          Ajith S
        2. YARN-5820.02.patch
          0.8 kB
          Ajith S
        3. YARN-5820.03.patch
          2 kB
          Ajith S
        4. YARN-5820.04.patch
          2 kB
          Ajith S

          Activity

            People

            • Assignee:
              ajithshetty Ajith S
              Reporter:
              gsohn Grant Sohn
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: