private void getChildQueues(
      org.apache.hadoop.yarn.api.records.QueueInfo parent,
      List<org.apache.hadoop.yarn.api.records.QueueInfo> queues) {
    List<org.apache.hadoop.yarn.api.records.QueueInfo> childQueues = parent.getChildQueues();

    for (org.apache.hadoop.yarn.api.records.QueueInfo child : childQueues) {
      queues.add(child);
      getChildQueues(child, queues);
    }
  }
예제 #2
0
  private void getChildQueues(QueueInfo parent, List<QueueInfo> queues, boolean recursive) {
    List<QueueInfo> childQueues = parent.getChildQueues();

    for (QueueInfo child : childQueues) {
      queues.add(child);
      if (recursive) {
        getChildQueues(child, queues, recursive);
      }
    }
  }
예제 #3
0
 @Test
 public void testFifoSchedulerCapacityWhenNoNMs() {
   FifoScheduler scheduler = new FifoScheduler();
   QueueInfo queueInfo = scheduler.getQueueInfo(null, false, false);
   Assert.assertEquals(0.0f, queueInfo.getCurrentCapacity());
 }