diff options
author | Aleksandr Kovalenko <akovalenko@apache.org> | 2018-07-01 17:52:24 +0300 |
---|---|---|
committer | Aleksandr Kovalenko <aleksandrkovalenko@users.noreply.github.com> | 2018-07-01 20:18:27 +0300 |
commit | 789e4ec474ef3267f2fc27925b5c44f1cc11f6a0 (patch) | |
tree | c03548f0067de5a81ac0d8177677dc94437f30f4 | |
parent | fb6bde26d2a874e6d04b5ced5d421fba8d9eb951 (diff) |
AMBARI-24213. Enabling RM HA should not be allowed if YARN is stopped (akovalenko)
-rw-r--r-- | ambari-web/app/controllers/main/admin/highAvailability_controller.js | 4 | ||||
-rw-r--r-- | ambari-web/app/messages.js | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ambari-web/app/controllers/main/admin/highAvailability_controller.js b/ambari-web/app/controllers/main/admin/highAvailability_controller.js index 5a18e57acb..0fd4da46b0 100644 --- a/ambari-web/app/controllers/main/admin/highAvailability_controller.js +++ b/ambari-web/app/controllers/main/admin/highAvailability_controller.js @@ -65,6 +65,10 @@ App.MainAdminHighAvailabilityController = App.WizardController.extend({ enableRMHighAvailability: function () { //Prerequisite Checks var message = []; + + if (hostComponents.findProperty('componentName', 'RESOURCEMANAGER').get('workStatus') !== 'STARTED') { + message.push(Em.I18n.t('admin.rm_highAvailability.error.resourceManagerStarted')); + } if (App.HostComponent.find().filterProperty('componentName', 'ZOOKEEPER_SERVER').length < 3) { message.push(Em.I18n.t('admin.rm_highAvailability.error.zooKeeperNum')); } diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js index d908f150c7..d55a2243f9 100644 --- a/ambari-web/app/messages.js +++ b/ambari-web/app/messages.js @@ -1457,6 +1457,7 @@ Em.I18n.translations = { 'admin.highAvailability.error.zooKeeperNum':'You must have at least 3 ZooKeeper Servers in your cluster to enable NameNode HA.', 'admin.rm_highAvailability.error.hostsNum':'You must have at least 3 hosts in your cluster to enable ResourceManager HA.', 'admin.rm_highAvailability.error.zooKeeperNum':'You must have at least 3 ZooKeeper Servers in your cluster to enable ResourceManager HA.', + 'admin.rm_highAvailability.error.resourceManagerStarted':'ResourceManager must be running before you enable ResourceManager HA.', 'admin.rm_highAvailability.closePopup':'Enable ResourceManager HA Wizard is in progress. You must allow the wizard to complete for Ambari to be in usable state. If you choose to quit, you must follow manual instructions to complete or revert enabling ResourceManager HA as documented in the Ambari User Guide. Are you sure you want to exit the wizard?', 'admin.highAvailability.wizard.header':'Enable NameNode HA Wizard', |