Repository: ambari Updated Branches: refs/heads/branch-2.4 df9f02c51 -> 4a45faaff
AMBARI-17182. App timeline Server start fails on enabling HA because namenode is in safemode (Victor Galgo via magyari_sandor) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4a45faaf Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4a45faaf Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4a45faaf Branch: refs/heads/branch-2.4 Commit: 4a45faaffac5aaccf5afd1831b91e146b13359b5 Parents: df9f02c Author: Sandor Magyari <[email protected]> Authored: Thu Jul 28 18:08:17 2016 +0200 Committer: Sandor Magyari <[email protected]> Committed: Thu Jul 28 18:22:04 2016 +0200 ---------------------------------------------------------------------- .../main/admin/highAvailability/nameNode/step9_controller.js | 7 ++++++- ambari-web/app/messages.js | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4a45faaf/ambari-web/app/controllers/main/admin/highAvailability/nameNode/step9_controller.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/admin/highAvailability/nameNode/step9_controller.js b/ambari-web/app/controllers/main/admin/highAvailability/nameNode/step9_controller.js index 24677e4..d83ef9f 100644 --- a/ambari-web/app/controllers/main/admin/highAvailability/nameNode/step9_controller.js +++ b/ambari-web/app/controllers/main/admin/highAvailability/nameNode/step9_controller.js @@ -22,7 +22,7 @@ App.HighAvailabilityWizardStep9Controller = App.HighAvailabilityProgressPageCont name:"highAvailabilityWizardStep9Controller", - commands: ['startSecondNameNode', 'installZKFC', 'startZKFC', 'installPXF', 'reconfigureHBase', 'reconfigureAccumulo', 'reconfigureHawq', 'deleteSNameNode', 'startAllServices'], + commands: ['startSecondNameNode', 'installZKFC', 'startZKFC', 'installPXF', 'reconfigureHBase', 'reconfigureAccumulo', 'reconfigureHawq', 'deleteSNameNode', 'stopNameNodes', 'startAllServices'], hbaseSiteTag: "", accumuloSiteTag: "", @@ -143,6 +143,11 @@ App.HighAvailabilityWizardStep9Controller = App.HighAvailabilityProgressPageCont startAllServices: function () { this.startServices(false); }, + + stopNameNodes: function () { + var hostName = this.get('content.masterComponentHosts').filterProperty('component', 'NAMENODE').mapProperty('hostName'); + this.updateComponent('NAMENODE', hostName, "HDFS", "Stop"); + }, deleteSNameNode: function () { var hostName = this.get('content.masterComponentHosts').findProperty('component', 'SECONDARY_NAMENODE').hostName; http://git-wip-us.apache.org/repos/asf/ambari/blob/4a45faaf/ambari-web/app/messages.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js index ace50cb..11bb326 100644 --- a/ambari-web/app/messages.js +++ b/ambari-web/app/messages.js @@ -1324,8 +1324,9 @@ Em.I18n.translations = { 'admin.highAvailability.wizard.step9.task4.title':'Reconfigure HBase', 'admin.highAvailability.wizard.step9.task5.title':'Reconfigure Accumulo', 'admin.highAvailability.wizard.step9.task6.title':'Reconfigure HAWQ', - 'admin.highAvailability.wizard.step9.task7.title':'Delete Secondary NameNode', - 'admin.highAvailability.wizard.step9.task8.title':'Start All Services', + 'admin.highAvailability.wizard.step9.task7.title':'Stop NameNodes', + 'admin.highAvailability.wizard.step9.task8.title':'Delete Secondary NameNode', + 'admin.highAvailability.wizard.step9.task9.title':'Start All Services', 'admin.highAvailability.wizard.step9.notice.completed':'NameNode HA has been enabled successfully.', 'admin.highAvailability.wizard.step3.curNameNode': '<b>Current NameNode:</b> ',
