XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0, 3.2.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I setup a single node cluster, then trying to add node-attributes with CLI,

      first I tried:

      ./bin/yarn nodeattributes -add localhost:hostname(STRING)=localhost
      

      this command returns exit code 0, however the node-attribute was not added.

      Then I tried to replace "localhost" with the host ID, and it worked.

      We need to ensure the command fails with proper error message when adding was not succeed.

      Similarly, when I remove a node-attribute that doesn't exist, I still get return code 0.

        Attachments

        1. YARN-8987.003.patch
          6 kB
          Bibin Chundatt
        2. YARN-8987.002.patch
          6 kB
          Bibin Chundatt
        3. YARN-8987.001.patch
          6 kB
          Bibin Chundatt

          Activity

            People

            • Assignee:
              bibinchundatt Bibin Chundatt
              Reporter:
              cheersyang Weiwei Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: