Details

    • Hadoop Flags:
      Reviewed

      Description

      Currently, if admin setup labels on queues <queue-path>.accessible-node-labels = .... And the label is not added to RM, queue's initialization will fail and RM will fail too:

      2014-12-03 20:11:50,126 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManager
      ...
      Caused by: java.io.IOException: NodeLabelManager doesn't include label = x, please check.
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.SchedulerUtils.checkIfLabelInClusterNodeLabels(SchedulerUtils.java:287)
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.AbstractCSQueue.<init>(AbstractCSQueue.java:109)
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.LeafQueue.<init>(LeafQueue.java:120)
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.parseQueue(CapacityScheduler.java:567)
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.parseQueue(CapacityScheduler.java:587)
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initializeQueues(CapacityScheduler.java:462)
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.initScheduler(CapacityScheduler.java:294)
      	at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CapacityScheduler.serviceInit(CapacityScheduler.java:324)
      	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
      

      This is not a good user experience, we should stop fail RM so that admin can configure queue/labels in following steps:

      • Configure queue (with label)
      • Start RM
      • Add labels to RM
      • Submit applications

      Now admin has to:

      • Configure queue (without label)
      • Start RM
      • Add labels to RM
      • Refresh queue's config (with label)
      • Submit applications

        Attachments

        1. YARN-2918-branch-2.6.1.txt
          42 kB
          Vinod Kumar Vavilapalli
        2. YARN-2918.3.patch
          43 kB
          Wangda Tan
        3. YARN-2918.2.patch
          44 kB
          Wangda Tan
        4. YARN-2918.1.patch
          42 kB
          Wangda Tan

          Activity

            People

            • Assignee:
              leftnoteasy Wangda Tan
              Reporter:
              rohithsharma Rohith Sharma K S
            • Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: