Updated Branches: refs/heads/trunk 32c3887eb -> 6782de914
AMBARI-3162. NameNode HA wizard (rollback): Create API calls for Delete ZKFC, Stop StandbyNN, Stop Namenode Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/6782de91 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/6782de91 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/6782de91 Branch: refs/heads/trunk Commit: 6782de914aef04e8085f75188c52da5a72906b41 Parents: 32c3887 Author: Alex Antonenko <[email protected]> Authored: Tue Sep 10 19:51:41 2013 +0300 Committer: Alex Antonenko <[email protected]> Committed: Tue Sep 10 19:51:41 2013 +0300 ---------------------------------------------------------------------- .../main/admin/highAvailability/rollback_controller.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/6782de91/ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js b/ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js index b57a13a..feebdc1 100644 --- a/ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js +++ b/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();
