Updated Branches: refs/heads/trunk 9bb87a35c -> 32c3887eb
AMBARI-3164. NameNode HA wizard (rollback): Create API calls and shows the progress for Delete JNs and Additional NN, Start All Services. (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/32c3887e Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/32c3887e Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/32c3887e Branch: refs/heads/trunk Commit: 32c3887ebdeb1d7b75d6ebd99007d4b5894755ca Parents: 9bb87a3 Author: Oleg Nechiporenko <[email protected]> Authored: Tue Sep 10 19:48:55 2013 +0300 Committer: Oleg Nechiporenko <[email protected]> Committed: Tue Sep 10 19:48:55 2013 +0300 ---------------------------------------------------------------------- .../main/admin/highAvailability/rollback_controller.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/32c3887e/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 0b84187..b57a13a 100644 --- a/ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js +++ b/ambari-web/app/controllers/main/admin/highAvailability/rollback_controller.js @@ -225,13 +225,20 @@ App.HighAvailabilityRollbackController = App.HighAvailabilityProgressPageControl this.stopComponent('JOURNALNODE', hostNames); }, deleteJournalNodes: function(){ - + var hostNames = this.get('content.masterComponentHosts').filterProperty('component', 'JOURNALNODE').mapProperty('hostName'); + this.unInstallComponent('JOURNALNODE', hostNames); }, deleteAdditionalNameNode: function(){ - + var hostNames = this.get('content.masterComponentHosts').filterProperty('isAddNameNode', true).mapProperty('hostName'); + this.unInstallComponent('NAMENODE', hostNames); }, startAllServices: function(){ - + App.ajax.send({ + name: 'admin.high_availability.start_all_services', + sender: this, + success: 'startPolling', + error: 'onTaskError' + }); }, onLoadHbaseConfigs: function (data) {
