ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-10106. With Yarn Rm HA enabled no mark for Active Resource Manager is displayed (alexantonenko)
Date Tue, 17 Mar 2015 15:41:38 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 b16c3f17f -> a89acabfc


AMBARI-10106. With Yarn Rm HA enabled no mark for Active Resource Manager is displayed (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/a89acabf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a89acabf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a89acabf

Branch: refs/heads/branch-2.0.0
Commit: a89acabfc91e89ca9f3df348736666ecfff82759
Parents: b16c3f1
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Tue Mar 17 17:40:07 2015 +0200
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Tue Mar 17 17:41:32 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/mappers/service_metrics_mapper.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a89acabf/ambari-web/app/mappers/service_metrics_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/service_metrics_mapper.js b/ambari-web/app/mappers/service_metrics_mapper.js
index 3303369..e594968 100644
--- a/ambari-web/app/mappers/service_metrics_mapper.js
+++ b/ambari-web/app/mappers/service_metrics_mapper.js
@@ -181,9 +181,8 @@ App.serviceMetricsMapper = App.QuickDataMapper.create({
           host_component.id = host_component.HostRoles.component_name + "_" + host_component.HostRoles.host_name;
           previousComponentStatuses[host_component.id] = host_component.HostRoles.state;
           previousComponentPassiveStates[host_component.id] = host_component.HostRoles.maintenance_state;
-          if (host_component.HostRoles.component_name == "HBASE_MASTER") {
-            this.config3.ha_status = 'metrics.hbase.master.IsActiveMaster';
-          }
+          this.config3.ha_status = host_component.HostRoles.component_name == "HBASE_MASTER"
?
+            'metrics.hbase.master.IsActiveMaster' : 'HostRoles.ha_state';
           var comp = this.parseIt(host_component, this.config3);
           comp.service_id = serviceName;
           hostComponents.push(comp);


Mime
View raw message