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

Application recovery has failed when node label feature is turned off during RM recovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0, 3.0.0-alpha4, 2.8.2
    • scheduler
    • None
    • Reviewed

    Description

      Here is the repro steps:
      Enable node label, restart RM, configure CS properly, and run some jobs;
      Disable node label, restart RM, and the following exception thrown:

      Caused by: org.apache.hadoop.yarn.exceptions.InvalidLabelResourceRequestException: Invalid resource request, node label not enabled but request contains label expression
              at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.normalizeAndValidateRequest(SchedulerUtils.java:225)
              at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.normalizeAndValidateRequest(SchedulerUtils.java:248)
              at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.validateAndCreateResourceRequest(RMAppManager.java:394)
              at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.createAndPopulateNewRMApp(RMAppManager.java:339)
              at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.recoverApplication(RMAppManager.java:319)
              at org.apache.hadoop.yarn.server.resourcemanager.RMAppManager.recover(RMAppManager.java:436)
              at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.recover(ResourceManager.java:1165)
              at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceStart(ResourceManager.java:574)
              at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
              ... 10 more
      

      During RM restart, application recovery failed due to that application had node label expression specified while node label has been disabled.

      Attachments

        1. YARN-6031.001.patch
          3 kB
          Ying Zhang
        2. YARN-6031.002.patch
          4 kB
          Ying Zhang
        3. YARN-6031.003.patch
          9 kB
          Ying Zhang
        4. YARN-6031.004.patch
          9 kB
          Ying Zhang
        5. YARN-6031.005.patch
          9 kB
          Ying Zhang
        6. YARN-6031.006.patch
          9 kB
          Ying Zhang
        7. YARN-6031.007.patch
          9 kB
          Ying Zhang
        8. YARN-6031-branch-2.8.001.patch
          10 kB
          Ying Zhang

        Issue Links

          Activity

            People

              Ying Zhang Ying Zhang
              Ying Zhang Ying Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: