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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 2.7.4, 3.0.0-alpha1
    • None
    • None
    • 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 wangda thank you for confirming

      Attachments

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

        Issue Links

          Activity

            People

              bibinchundatt Bibin Chundatt
              bibinchundatt Bibin Chundatt
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: