public void initialize(Configuration conf) throws IOException, SAXException, AllocationConfigurationException, ParserConfigurationException { rootQueue = new FSParentQueue("root", scheduler, null); queues.put(rootQueue.getName(), rootQueue); // Create the default queue getLeafQueue(YarnConfiguration.DEFAULT_QUEUE_NAME, true); }
public void initialize(Configuration conf) throws IOException, SAXException, AllocationConfigurationException, ParserConfigurationException { rootQueue = new FSParentQueue("root", scheduler, null); queues.put(rootQueue.getName(), rootQueue); // Create the default queue getLeafQueue(YarnConfiguration.DEFAULT_QUEUE_NAME, true); }
public void initialize(Configuration conf) throws IOException, SAXException, AllocationConfigurationException, ParserConfigurationException { // Policies of root and default queue are set to // SchedulingPolicy.DEFAULT_POLICY since the allocation file hasn't been // loaded yet. rootQueue = new FSParentQueue("root", scheduler, null); rootQueue.setDynamic(false); queues.put(rootQueue.getName(), rootQueue); // Create the default queue FSLeafQueue defaultQueue = getLeafQueue(YarnConfiguration.DEFAULT_QUEUE_NAME, true); defaultQueue.setDynamic(false); // Recursively reinitialize to propagate queue properties rootQueue.reinit(true); }
return null; newParent = new FSParentQueue(queueName, scheduler, parent); queue = newParent;
return leafQueue; } else { FSParentQueue newParent = new FSParentQueue(queueName, scheduler, parent); try { newParent.setPolicy(queueConf.getDefaultSchedulingPolicy());
return leafQueue; } else { FSParentQueue newParent = new FSParentQueue(queueName, scheduler, parent); try { newParent.setPolicy(queueConf.getDefaultSchedulingPolicy());