|
@@ -25,6 +25,7 @@ import org.apache.hadoop.ha.HAServiceProtocol;
|
|
|
import org.apache.hadoop.service.Service.STATE;
|
|
|
import org.apache.hadoop.util.VersionInfo;
|
|
|
import org.apache.hadoop.yarn.server.resourcemanager.ResourceManager;
|
|
|
+import org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore;
|
|
|
import org.apache.hadoop.yarn.util.YarnVersionInfo;
|
|
|
|
|
|
@XmlRootElement
|
|
@@ -35,6 +36,7 @@ public class ClusterInfo {
|
|
|
protected long startedOn;
|
|
|
protected STATE state;
|
|
|
protected HAServiceProtocol.HAServiceState haState;
|
|
|
+ protected String rmStateStoreName;
|
|
|
protected String resourceManagerVersion;
|
|
|
protected String resourceManagerBuildVersion;
|
|
|
protected String resourceManagerVersionBuiltOn;
|
|
@@ -51,6 +53,8 @@ public class ClusterInfo {
|
|
|
this.id = ts;
|
|
|
this.state = rm.getServiceState();
|
|
|
this.haState = rm.getRMContext().getHAServiceState();
|
|
|
+ this.rmStateStoreName = rm.getRMContext().getStateStore().getClass()
|
|
|
+ .getName();
|
|
|
this.startedOn = ts;
|
|
|
this.resourceManagerVersion = YarnVersionInfo.getVersion();
|
|
|
this.resourceManagerBuildVersion = YarnVersionInfo.getBuildVersion();
|
|
@@ -68,6 +72,10 @@ public class ClusterInfo {
|
|
|
return this.haState.toString();
|
|
|
}
|
|
|
|
|
|
+ public String getRMStateStore() {
|
|
|
+ return this.rmStateStoreName;
|
|
|
+ }
|
|
|
+
|
|
|
public String getRMVersion() {
|
|
|
return this.resourceManagerVersion;
|
|
|
}
|