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

Yarn node label CLI should parse "=" correctly when trying to remove all labels on a node

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Currently, when adding labels to nodes, user can run:
      yarn rmadmin -replaceLabelsOnNode "host1=x host2=y"

      However, when removing labels from a node, user has to run:
      yarn rmadmin -replaceLabelsOnNode "host1 host2"
      Instead of:
      yarn rmadmin -replaceLabelsOnNode "host1= host2="

      We should handle both of "=" exists/not-exists case when removing labels on a node.

        Attachments

        1. YARN-4654.v1.003.patch
          5 kB
          Naganarasimha G R
        2. YARN-4654.v1.002.patch
          4 kB
          Naganarasimha G R
        3. YARN-4654.v1.001.patch
          4 kB
          Naganarasimha G R

          Activity

            People

            • Assignee:
              Naganarasimha Naganarasimha G R
              Reporter:
              leftnoteasy Wangda Tan
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: