Java Code Examples for org.apache.hadoop.yarn.api.records.YarnClusterMetrics#getNumNodeManagers()
The following examples show how to use
org.apache.hadoop.yarn.api.records.YarnClusterMetrics#getNumNodeManagers() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ResourceMgrDelegate.java From hadoop with Apache License 2.0 | 5 votes |
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); } }
Example 2
Source File: ResourceMgrDelegate.java From big-c with Apache License 2.0 | 5 votes |
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); } }
Example 3
Source File: ResourceMgrDelegate.java From incubator-tez with Apache License 2.0 | 5 votes |
public ClusterMetrics getClusterMetrics() throws IOException, InterruptedException { YarnClusterMetrics metrics; try { metrics = client.getYarnClusterMetrics(); } catch (YarnException e) { throw new IOException(e); } ClusterMetrics oldMetrics = new ClusterMetrics(1, 1, 1, 1, 1, 1, metrics.getNumNodeManagers() * 10, metrics.getNumNodeManagers() * 2, 1, metrics.getNumNodeManagers(), 0, 0); return oldMetrics; }
Example 4
Source File: ResourceMgrDelegate.java From tez with Apache License 2.0 | 5 votes |
public ClusterMetrics getClusterMetrics() throws IOException, InterruptedException { YarnClusterMetrics metrics; try { metrics = client.getYarnClusterMetrics(); } catch (YarnException e) { throw new IOException(e); } ClusterMetrics oldMetrics = new ClusterMetrics(1, 1, 1, 1, 1, 1, metrics.getNumNodeManagers() * 10, metrics.getNumNodeManagers() * 2, 1, metrics.getNumNodeManagers(), 0, 0); return oldMetrics; }