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

ContainerRequest in AMRMClient, application should be able to specify nodes/racks together with nodeLabelExpression

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.4, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Currently with nodelabel AMRMClient will not be able to specify nodelabels with Node/Rack requests.For application like spark NODE_LOCAL requests cannot be asked with label expression.
      As per the check in AMRMClientImpl#checkNodeLabelExpression

          // Don't allow specify node label against ANY request
          if ((containerRequest.getRacks() != null && 
              (!containerRequest.getRacks().isEmpty()))
              || 
              (containerRequest.getNodes() != null && 
              (!containerRequest.getNodes().isEmpty()))) {
            throw new InvalidContainerRequestException(
                "Cannot specify node label with rack and node");
          }
      

      AppSchedulingInfo#updateResourceRequests we do reset of labels to that of OFF-SWITCH.

      The above check is not required for ContainerRequest ask /cc Tan, Wangda thank you for confirming

        Attachments

        1. 0001-YARN-4925.patch
          2 kB
          Bibin A Chundatt
        2. 0002-YARN-4925.patch
          3 kB
          Bibin A Chundatt
        3. YARN-4925-branch-2.7.001.patch
          3 kB
          Jonathan Hung

          Issue Links

            Activity

              People

              • Assignee:
                bibinchundatt Bibin A Chundatt
                Reporter:
                bibinchundatt Bibin A Chundatt
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: