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

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • client
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: