Example usage for org.apache.hadoop.mapreduce TypeConverter fromYarnQueueInfo

List of usage examples for org.apache.hadoop.mapreduce TypeConverter fromYarnQueueInfo

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce TypeConverter fromYarnQueueInfo.

Prototype

public static QueueInfo[] fromYarnQueueInfo(List<org.apache.hadoop.yarn.api.records.QueueInfo> queues,
            Configuration conf) 

Source Link

Usage

From source file:org.apache.tez.mapreduce.client.ResourceMgrDelegate.java

License:Apache License

public QueueInfo[] getQueues() throws IOException, InterruptedException {
    try {//w ww .j  a  v a 2 s .com
        return TypeConverter.fromYarnQueueInfo(client.getAllQueues(), this.conf);
    } catch (YarnException e) {
        throw new IOException(e);
    }
}

From source file:org.apache.tez.mapreduce.client.ResourceMgrDelegate.java

License:Apache License

public QueueInfo[] getRootQueues() throws IOException, InterruptedException {
    try {/*  w ww  .  j  a  v  a  2  s  . co m*/
        return TypeConverter.fromYarnQueueInfo(client.getRootQueueInfos(), this.conf);
    } catch (YarnException e) {
        throw new IOException(e);
    }
}

From source file:org.apache.tez.mapreduce.client.ResourceMgrDelegate.java

License:Apache License

public QueueInfo[] getChildQueues(String parent) throws IOException, InterruptedException {
    try {//from w  w  w.  ja va2s  .  c o  m
        return TypeConverter.fromYarnQueueInfo(client.getChildQueueInfos(parent), this.conf);
    } catch (YarnException e) {
        throw new IOException(e);
    }
}