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

SchedulerUtils#validateRequest for Label check should happen only when nodelabel enabled

    Details

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

      Description

      Disable label from rm side yarn.nodelabel.enable=false
      Capacity scheduler label configuration for queue is available as below
      default label for queue = b1 as 3 and accessible labels as 1,3
      Submit application to queue A .

      Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException): Invalid resource request, queue=b1 doesn't have permission to access all labels in resource request. labelExpression of resource request=3. Queue labels=1,3
              at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.validateResourceRequest(SchedulerUtils.java:304)
              at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.normalizeAndValidateRequest(SchedulerUtils.java:234)
              at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.normalizeAndValidateRequest(SchedulerUtils.java:216)
              at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.validateAndCreateResourceRequest(RMAppManager.java:401)
              at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.createAndPopulateNewRMApp(RMAppManager.java:340)
              at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.submitApplication(RMAppManager.java:283)
              at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.submitApplication(ClientRMService.java:602)
              at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.submitApplication(ApplicationClientProtocolPBServiceImpl.java:247)
      
      
      1. Ignore default label expression when label is disabled or
      2. NormalizeResourceRequest we can set label expression to <DEFAULT PARTITION> when node label is not enabled or
      3. Improve message

        Attachments

        1. 0001-YARN-4465.patch
          14 kB
          Bibin A Chundatt
        2. 0002-YARN-4465.patch
          16 kB
          Bibin A Chundatt
        3. 0003-YARN-4465.patch
          16 kB
          Bibin A Chundatt
        4. 0004-YARN-4465.patch
          9 kB
          Bibin A Chundatt
        5. 0006-YARN-4465.patch
          10 kB
          Bibin A Chundatt
        6. 0007-YARN-4465.patch
          9 kB
          Bibin A Chundatt

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: