ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-13002. Turning on the Maintenance mode wouldn't let you install the additional components properly (alexantonenko)
Date Thu, 25 Feb 2016 16:09:41 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk efb4b8778 -> ed954bbe8


AMBARI-13002. Turning on the Maintenance mode wouldn't let you install the additional components
properly (alexantonenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ed954bbe
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ed954bbe
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ed954bbe

Branch: refs/heads/trunk
Commit: ed954bbe86575d8aa0730968c4642807fb87a6d5
Parents: efb4b87
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Thu Feb 25 17:47:45 2016 +0200
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Thu Feb 25 18:09:37 2016 +0200

----------------------------------------------------------------------
 .../app/controllers/main/admin/highAvailability_controller.js     | 3 +++
 ambari-web/app/messages.js                                        | 1 +
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ed954bbe/ambari-web/app/controllers/main/admin/highAvailability_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/highAvailability_controller.js b/ambari-web/app/controllers/main/admin/highAvailability_controller.js
index 710e4d0..0bdd09c 100644
--- a/ambari-web/app/controllers/main/admin/highAvailability_controller.js
+++ b/ambari-web/app/controllers/main/admin/highAvailability_controller.js
@@ -39,6 +39,9 @@ App.MainAdminHighAvailabilityController = Em.Controller.extend({
     if (hostComponents.filterProperty('componentName', 'ZOOKEEPER_SERVER').length < 3)
{
       message.push(Em.I18n.t('admin.highAvailability.error.zooKeeperNum'));
     }
+    if(hostComponents.filterProperty('isMaster', true).someProperty('passiveState', "ON")
|| hostComponents.filterProperty('isMaster', true).someProperty('isImpliedState', true)) {
+      message.push(Em.I18n.t('admin.highAvailability.error.maintenanceMode'));
+    }
 
     if (App.router.get('mainHostController.hostsCountMap.TOTAL') < 3) {
       message.push(Em.I18n.t('admin.highAvailability.error.hostsNum'));

http://git-wip-us.apache.org/repos/asf/ambari/blob/ed954bbe/ambari-web/app/messages.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 733ac86..1cefce2 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -1171,6 +1171,7 @@ Em.I18n.translations = {
   'admin.highAvailability.confirmManualRollbackBody':'You are in the process of enabling
NameNode HA. If you exit now, you must follow manual instructions to revert back to the non-HA
setup as documented in the Ambari User Guide\'s <i>Rolling Back NameNode HA</i>
section.  Are you sure you want to exit the wizard?',
   'admin.highAvailability.error.hostsNum':'You must have at least 3 hosts in your cluster
to enable NameNode HA.',
   'admin.highAvailability.error.namenodeStarted':'NameNode must be running before you enable
NameNode HA.',
+  'admin.highAvailability.error.maintenanceMode':'In order to enable NameNode HA, all services,
and hosts with master components need to be out of Maintenance Mode.',
   '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.',


Mime
View raw message