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

PlacementRule should be configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-beta1
    • None
    • None

    Description

      YARN-3635 introduces PlacementRules for placing applications in queues. It is currently hardcoded to one rule, UserGroupMappingPlacementRule. This should be configurable as mentioned in the comments:

        private void updatePlacementRules() throws IOException {
          List<PlacementRule> placementRules = new ArrayList<>();
      
          // Initialize UserGroupMappingPlacementRule
          // TODO, need make this defineable by configuration.
          UserGroupMappingPlacementRule ugRule = getUserGroupMappingPlacementRule();
          if (null != ugRule) {
            placementRules.add(ugRule);
          }
      
          rmContext.getQueuePlacementManager().updateRules(placementRules);
        }

      Attachments

        1. YARN-6689.004.patch
          7 kB
          Jonathan Hung
        2. YARN-6689.003.patch
          7 kB
          Jonathan Hung
        3. YARN-6689.002.patch
          6 kB
          Jonathan Hung
        4. YARN-6689.001.patch
          3 kB
          Jonathan Hung

        Issue Links

          Activity

            People

              jhung Jonathan Hung
              jhung Jonathan Hung
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: