You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2016/02/01 16:41:56 UTC
[19/39] ambari git commit: AMBARI-14794: Stop HAWQ Cluster Immediate
command should be disabled if HAWQMASTER is stopped (adenissov via jaoki)
AMBARI-14794: Stop HAWQ Cluster Immediate command should be disabled if HAWQMASTER is stopped (adenissov via jaoki)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d6346993
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d6346993
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d6346993
Branch: refs/heads/branch-dev-patch-upgrade
Commit: d63469935d0933af5e625cfea1d581f056055685
Parents: b037ef5
Author: Jun Aoki <ja...@apache.org>
Authored: Thu Jan 28 17:42:04 2016 -0800
Committer: Jun Aoki <ja...@apache.org>
Committed: Thu Jan 28 17:42:04 2016 -0800
----------------------------------------------------------------------
ambari-web/app/models/host_component.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/d6346993/ambari-web/app/models/host_component.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/host_component.js b/ambari-web/app/models/host_component.js
index 77395f2..b205d38 100644
--- a/ambari-web/app/models/host_component.js
+++ b/ambari-web/app/models/host_component.js
@@ -269,6 +269,7 @@ App.HostComponentActionMap = {
var NN = ctx.get('controller.content.hostComponents').findProperty('componentName', 'NAMENODE');
var RM = ctx.get('controller.content.hostComponents').findProperty('componentName', 'RESOURCEMANAGER');
var RA = ctx.get('controller.content.hostComponents').findProperty('componentName', 'RANGER_ADMIN');
+ var HM = ctx.get('controller.content.hostComponents').findProperty('componentName', 'HAWQMASTER');
var HS = ctx.get('controller.content.hostComponents').findProperty('componentName', 'HAWQSTANDBY');
return {
RESTART_ALL: {
@@ -378,7 +379,7 @@ App.HostComponentActionMap = {
context: Em.I18n.t('services.service.actions.run.immediateStopHawqCluster.context'),
label: Em.I18n.t('services.service.actions.run.immediateStopHawqCluster.context'),
cssClass: 'icon-stop',
- disabled: false
+ disabled: !HM || HM.get('workStatus') != App.HostComponentStatus.started
},
IMMEDIATE_STOP: {
customCommand: 'IMMEDIATE_STOP',