List of usage examples for org.apache.hadoop.mapreduce TypeConverter fromYarnQueueInfo
public static QueueInfo[] fromYarnQueueInfo(List<org.apache.hadoop.yarn.api.records.QueueInfo> queues, Configuration conf)
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); } }