浏览代码

AMBARI-3162. NameNode HA wizard (rollback): Create API calls for Delete ZKFC, Stop StandbyNN, Stop Namenode

Alex Antonenko 11 年之前
父节点
当前提交
6782de914a
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js

+ 6 - 3
ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js

@@ -205,13 +205,16 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl
     this.stopComponent('ZKFC', hostNames);
   },
   deleteFailoverControllers: function(){
-
+    var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName');
+    this.unInstallComponent('ZKFC', hostNames);
   },
   stopStandbyNameNode: function(){
-
+    var hostName = this.get('content.masterComponentHosts').findProperty('isCurNameNode').hostName;
+    this.stopComponent('NAMENODE', hostName);
   },
   stopNameNode: function(){
-
+    var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName');
+    this.stopComponent('NAMENODE', hostNames);
   },
   restoreHDFSConfigs: function(){
     this.unInstallHDFSClients();