List of usage examples for org.apache.hadoop.mapreduce TypeConverter fromYarn
public static QueueInfo fromYarn(org.apache.hadoop.yarn.api.records.QueueInfo queueInfo, Configuration conf)
From source file:org.apache.tez.mapreduce.client.ResourceMgrDelegate.java
License:Apache License
public QueueInfo getQueue(String queueName) throws IOException, InterruptedException { try {/* w w w.j ava2 s. c o m*/ org.apache.hadoop.yarn.api.records.QueueInfo queueInfo = client.getQueueInfo(queueName); return (queueInfo == null) ? null : TypeConverter.fromYarn(queueInfo, conf); } catch (YarnException e) { throw new IOException(e); } }
From source file:org.apache.tez.mapreduce.ResourceMgrDelegate.java
License:Apache License
public QueueInfo getQueue(String queueName) throws IOException, InterruptedException { try {//w w w . ja v a2 s . c o m return TypeConverter.fromYarn(client.getQueueInfo(queueName), this.conf); } catch (YarnException e) { throw new IOException(e); } }