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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new 288e1193d6 AMBARI-25753: Web should not support enabling nameNode 
federation if hosts number is less than 4 (#3387)
288e1193d6 is described below

commit 288e1193d62a839a8f6f375896ad5d76046e7b11
Author: yaolei <[email protected]>
AuthorDate: Mon Oct 10 14:55:52 2022 +0800

    AMBARI-25753: Web should not support enabling nameNode federation if hosts 
number is less than 4 (#3387)
---
 ambari-web/app/models/host_component.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-web/app/models/host_component.js 
b/ambari-web/app/models/host_component.js
index 87a64399c0..0f666026e9 100644
--- a/ambari-web/app/models/host_component.js
+++ b/ambari-web/app/models/host_component.js
@@ -573,7 +573,7 @@ App.HostComponentActionMap = {
         action: 'openNameNodeFederationWizard',
         label: Em.I18n.t('admin.nameNodeFederation.button.enable'),
         cssClass: 'icon icon-sitemap',
-        disabled: !App.get('isHaEnabled')
+        disabled: !App.get('isHaEnabled') || App.get('allHostNames.length') < 4
       },
       UPDATE_REPLICATION: {
         action: 'updateHBaseReplication',


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to