ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [21/27] git commit: AMBARI-7319. Rebalance of HDFS is not working for HDP 1.3. (jaimin)
Date Tue, 16 Sep 2014 12:51:01 GMT
AMBARI-7319. Rebalance of HDFS is not working for HDP 1.3. (jaimin)


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

Branch: refs/heads/branch-alerts-dev
Commit: f84ee8dd7985224b6481a796c6102bb56e0251e8
Parents: 601014e
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Mon Sep 15 15:31:52 2014 -0700
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Mon Sep 15 15:31:52 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/service/item.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f84ee8dd/ambari-web/app/views/main/service/item.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/item.js b/ambari-web/app/views/main/service/item.js
index 2dda3c0..7a388fd 100644
--- a/ambari-web/app/views/main/service/item.js
+++ b/ambari-web/app/views/main/service/item.js
@@ -196,7 +196,10 @@ App.MainServiceItemView = Em.View.extend({
       }
       options.push(actionMap.TOGGLE_PASSIVE);
       var serviceName = service.get('serviceName');
-      if (serviceName === 'HDFS') {
+      var nnComponent = App.StackServiceComponent.find().findProperty('componentName','NAMENODE');
+      if (serviceName === 'HDFS' && nnComponent) {
+        var namenodeCustomCommands = nnComponent.get('customCommands');
+        if (namenodeCustomCommands && namenodeCustomCommands.contains('REBALANCEHDFS'))
         options.push(actionMap.REBALANCE_HDFS);
       }
       self.addActionMap().filterProperty('service', serviceName).forEach(function(item) {


Mime
View raw message