use of org.apache.hadoop.mapreduce.ClusterMetrics in project hadoop by apache.
the class ResourceMgrDelegate method getClusterMetrics.
public ClusterMetrics getClusterMetrics() throws IOException, InterruptedException {
try {
YarnClusterMetrics metrics = client.getYarnClusterMetrics();
ClusterMetrics oldMetrics = new ClusterMetrics(1, 1, 1, 1, 1, 1, metrics.getNumNodeManagers() * 10, metrics.getNumNodeManagers() * 2, 1, metrics.getNumNodeManagers(), 0, 0);
return oldMetrics;
} catch (YarnException e) {
throw new IOException(e);
}
}
Aggregations