You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/19 17:56:19 UTC
[ambari] branch trunk updated: AMBARI-25523: Ambari UI keeps loading at step3 while adding the new namespace for HDFS for the second time (#3547)
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 27fbf2b356 AMBARI-25523: Ambari UI keeps loading at step3 while adding the new namespace for HDFS for the second time (#3547)
27fbf2b356 is described below
commit 27fbf2b356b19a135c4337f2c8d00edf9c34d328
Author: Yu Hou <52...@qq.com>
AuthorDate: Sun Nov 20 01:56:12 2022 +0800
AMBARI-25523: Ambari UI keeps loading at step3 while adding the new namespace for HDFS for the second time (#3547)
---
ambari-web/app/controllers/main/admin/federation/step3_controller.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ambari-web/app/controllers/main/admin/federation/step3_controller.js b/ambari-web/app/controllers/main/admin/federation/step3_controller.js
index 1f9890bbf8..b4fd233d30 100644
--- a/ambari-web/app/controllers/main/admin/federation/step3_controller.js
+++ b/ambari-web/app/controllers/main/admin/federation/step3_controller.js
@@ -105,7 +105,9 @@ App.NameNodeFederationWizardStep3Controller = Em.Controller.extend(App.Blueprint
var hdfsSiteConfigs = configsFromServer.findProperty('type', 'hdfs-site').properties;
var nameServices = App.HDFSService.find().objectAt(0).get('masterComponentGroups').mapProperty('name');
ret.nameServicesList = nameServices.join(',');
- ret.nameservice1 = nameServices[0];
+ ret.nameservice1 = nameServices.find(function (ns){
+ return hdfsSiteConfigs['dfs.namenode.rpc-address.' + ns + '.nn1'];
+ });
ret.newNameservice = this.get('content.nameServiceId');
ret.namenode1 = hdfsSiteConfigs['dfs.namenode.rpc-address.' + ret.nameservice1 + '.nn1'].split(':')[0];
ret.namenode2 = hdfsSiteConfigs['dfs.namenode.rpc-address.' + ret.nameservice1 + '.nn2'].split(':')[0];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org