Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2492 (Clone of YARN-796) Allow for (admin) labels on nodes and resource-requests
  3. YARN-2924

Node to labels mapping should not transfer to lowercase when adding from RMAdminCLI

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: client
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      In existing implementation, when parsing node-to-labels mapping from RMAdminCLI, it transferred all labels to lowercase:

            for (int i = 1; i < splits.length; i++) {
              if (!splits[i].trim().isEmpty()) {
                map.get(nodeId).add(splits[i].trim().toLowerCase());
              }
            }
      

      That is not correct, we should fix that.

        Attachments

        1. YARN-2924.1.patch
          2 kB
          Wangda Tan

          Activity

            People

            • Assignee:
              leftnoteasy Wangda Tan
              Reporter:
              leftnoteasy Wangda Tan
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: