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

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

Introduction

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

Prototype

public static QueueInfo fromYarn(org.apache.hadoop.yarn.api.records.QueueInfo queueInfo, Configuration conf) 

Source Link

Usage

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);
    }
}