Search in sources :

Example 1 with QueueState

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;
}
Also used : AccessControlList(org.apache.hadoop.security.authorize.AccessControlList) QueueState(org.apache.hadoop.mapreduce.QueueState) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 QueueState (org.apache.hadoop.mapreduce.QueueState)1 AccessControlList (org.apache.hadoop.security.authorize.AccessControlList)1