Search in sources :

Example 1 with ClusterInfo

use of org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo in project hadoop by apache.

the class AboutBlock method render.

@Override
protected void render(Block html) {
    html._(MetricsOverviewTable.class);
    ResourceManager rm = getInstance(ResourceManager.class);
    ClusterInfo cinfo = new ClusterInfo(rm);
    info("Cluster overview")._("Cluster ID:", cinfo.getClusterId())._("ResourceManager state:", cinfo.getState())._("ResourceManager HA state:", cinfo.getHAState())._("ResourceManager HA zookeeper connection state:", cinfo.getHAZookeeperConnectionState())._("ResourceManager RMStateStore:", cinfo.getRMStateStore())._("ResourceManager started on:", Times.format(cinfo.getStartedOn()))._("ResourceManager version:", cinfo.getRMBuildVersion() + " on " + cinfo.getRMVersionBuiltOn())._("Hadoop version:", cinfo.getHadoopBuildVersion() + " on " + cinfo.getHadoopVersionBuiltOn());
    html._(InfoBlock.class);
}
Also used : ClusterInfo(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo) ResourceManager(org.apache.hadoop.yarn.server.resourcemanager.ResourceManager)

Aggregations

ResourceManager (org.apache.hadoop.yarn.server.resourcemanager.ResourceManager)1 ClusterInfo (org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo)1