use of org.apache.hadoop.mapreduce.QueueState in project hadoop by apache.
the class DeprecatedQueueConfigurationParser method createQueues.
private List<Queue> createQueues(Configuration conf) {
String[] queueNameValues = conf.getStrings(MAPRED_QUEUE_NAMES_KEY);
List<Queue> list = new ArrayList<Queue>();
for (String name : queueNameValues) {
try {
Map<String, AccessControlList> acls = getQueueAcls(name, conf);
QueueState state = getQueueState(name, conf);
Queue q = new Queue(name, acls, state);
list.add(q);
} catch (Throwable t) {
LOG.warn("Not able to initialize queue " + name);
}
}
return list;
}
Aggregations