ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject git commit: AMBARI-4811. Bulk Decom or Stop of RS does not work. (xiwang via yusaku)
Date Wed, 26 Feb 2014 02:19:20 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk f56d554e4 -> e92ae94e4


AMBARI-4811. Bulk Decom or Stop of RS does not work. (xiwang via yusaku)


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

Branch: refs/heads/trunk
Commit: e92ae94e4bf7fe704e23acadd0766ec58cbed95d
Parents: f56d554
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Tue Feb 25 18:18:54 2014 -0800
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Tue Feb 25 18:18:54 2014 -0800

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host.js | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e92ae94e/ambari-web/app/controllers/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host.js b/ambari-web/app/controllers/main/host.js
index f26086b..38796b7 100644
--- a/ambari-web/app/controllers/main/host.js
+++ b/ambari-web/app/controllers/main/host.js
@@ -340,17 +340,23 @@ App.MainHostController = Em.ArrayController.extend({
       else {
         parameters['excluded_hosts'] = hostsWithComponentInProperState.join(',');
       }
-      App.ajax.send({
-        name: 'bulk_request.decommission',
-        sender: this,
-        data: {
-          context: Em.I18n.t(contextString),
-          serviceName: service.get('serviceName'),
-          componentName: operationData.componentName,
-          parameters: parameters
-        },
-        success: 'bulkOperationForHostComponentsSuccessCallback'
-      });
+      // HBASE service, decommission RegionServer in batch requests
+      if (operationData.serviceName == "HBASE") {
+        var hostNames = hostsWithComponentInProperState.join(',');
+        App.router.get('mainHostDetailsController').doDecommissionRegionServer(hostNames,
operationData.serviceName, "HBASE_MASTER", operationData.realComponentName);
+      } else {
+        App.ajax.send({
+          name: 'bulk_request.decommission',
+          sender: this,
+          data: {
+            context: Em.I18n.t(contextString),
+            serviceName: service.get('serviceName'),
+            componentName: operationData.componentName,
+            parameters: parameters
+          },
+          success: 'bulkOperationForHostComponentsSuccessCallback'
+        });
+      }
     }
     else {
       App.ModalPopup.show({


Mime
View raw message