XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 3.3.0, 3.2.1
    • None
    • None
    • 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.001.patch
          6 kB
          Bibin Chundatt
        2. YARN-8987.002.patch
          6 kB
          Bibin Chundatt
        3. YARN-8987.003.patch
          6 kB
          Bibin Chundatt

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: