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

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

Introduction

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

Prototype

public static TaskTrackerInfo[] fromYarnNodes(List<NodeReport> nodes) 

Source Link

Usage

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

License:Apache License

public TaskTrackerInfo[] getActiveTrackers() throws IOException, InterruptedException {
    try {/*from  ww w . ja va 2  s  . c o m*/
        return TypeConverter.fromYarnNodes(client.getNodeReports());
    } catch (YarnException e) {
        throw new IOException(e);
    }
}