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

Updating scheduler conf with comma in config value fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0, 3.0.0, 3.2.0, 3.1.2
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:
      None

      Description

      For example:

      $ yarn schedulerconf -update "root.gridops:acl_administer_queue=user1,user2 group1,group2"
      
      Specify configuration key value as confKey=confVal.

      This fails because there is a comma in the config value and the SchedConfCLI splits on comma first, expecting each split to a k=v pair.

      void globalUpdates(String args, SchedConfUpdateInfo updateInfo) {
        if (args == null) {
          return;
        }
        HashMap<String, String> globalUpdates = new HashMap<>();
        for (String globalUpdate : args.split(",")) {
          putKeyValuePair(globalUpdates, globalUpdate);
        }
        updateInfo.setGlobalParams(globalUpdates);
      }

      Cc: Jonathan Hung

        Attachments

        1. YARN-9593-001.patch
          3 kB
          Tanu Ajmera
        2. YARN-9593-002.patch
          7 kB
          Tanu Ajmera
        3. YARN-9593-003.patch
          7 kB
          Tanu Ajmera
        4. YARN-9593-004.patch
          7 kB
          Tanu Ajmera

          Activity

            People

            • Assignee:
              tanu.ajmera Tanu Ajmera
              Reporter:
              erwaman Anthony Hsu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: