You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2018/07/01 17:18:32 UTC

[ambari] 02/02: AMBARI-24213. Enabling RM HA should not be allowed if YARN is stopped (akovalenko)

This is an automated email from the ASF dual-hosted git repository.

akovalenko pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit dfbf724865216f5de40a618f1c725e9d64003c97
Author: Aleksandr Kovalenko <ak...@apache.org>
AuthorDate: Sun Jul 1 18:34:55 2018 +0300

    AMBARI-24213. Enabling RM HA should not be allowed if YARN is stopped (akovalenko)
---
 ambari-web/app/controllers/main/admin/highAvailability_controller.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-web/app/controllers/main/admin/highAvailability_controller.js b/ambari-web/app/controllers/main/admin/highAvailability_controller.js
index 0fd4da4..3ac7214 100644
--- a/ambari-web/app/controllers/main/admin/highAvailability_controller.js
+++ b/ambari-web/app/controllers/main/admin/highAvailability_controller.js
@@ -66,7 +66,7 @@ App.MainAdminHighAvailabilityController = App.WizardController.extend({
     //Prerequisite Checks
     var message = [];
 
-    if (hostComponents.findProperty('componentName', 'RESOURCEMANAGER').get('workStatus') !== 'STARTED') {
+    if (App.HostComponent.find().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) {