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

SchedulerRequest should be forwarded to scheduler if custom scheduler supports placement constraints

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0, 3.3.1
    • 3.4.0, 3.3.1
    • capacity scheduler
    • None
    • Reviewed

    Description

      Currently only CapacityScheduler supports placement constraints so request gets forwarded only for capacityScheduler. Below exception will be thrown if custom scheduler supports placement constraint

      if (request.getSchedulingRequests() != null
              && !request.getSchedulingRequests().isEmpty()) {
            if (!(scheduler instanceof CapacityScheduler)) {
              String message = "Found non empty SchedulingRequest of "
                  + "AllocateRequest for application=" + appAttemptId.toString()
                  + ", however the configured scheduler="
                  + scheduler.getClass().getCanonicalName()
                  + " cannot handle placement constraints, rejecting this "
                  + "allocate operation";
              LOG.warn(message);
              throw new YarnException(message);
            }
          }
      

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            BilwaST Bilwa S T Assign to me
            BilwaST Bilwa S T
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment