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/02/21 11:21:08 UTC
[ambari] branch trunk updated: AMBARI-23025. NN Federation Wizard:
implement step2 (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
The following commit(s) were added to refs/heads/trunk by this push:
new 957dd89 AMBARI-23025. NN Federation Wizard: implement step2 (akovalenko)
957dd89 is described below
commit 957dd89cbc4910386a803a4faf512ceac3407291
Author: Aleksandr Kovalenko <ak...@apache.org>
AuthorDate: Mon Feb 19 20:03:05 2018 +0200
AMBARI-23025. NN Federation Wizard: implement step2 (akovalenko)
---
.../controllers/main/admin/federation/step2_controller.js | 15 ++++++++++++++-
ambari-web/app/routes/namenode_federation_routes.js | 10 ++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/ambari-web/app/controllers/main/admin/federation/step2_controller.js b/ambari-web/app/controllers/main/admin/federation/step2_controller.js
index 1312b95..ea6b7a8 100644
--- a/ambari-web/app/controllers/main/admin/federation/step2_controller.js
+++ b/ambari-web/app/controllers/main/admin/federation/step2_controller.js
@@ -20,6 +20,19 @@ var App = require('app');
App.NameNodeFederationWizardStep2Controller = Em.Controller.extend(App.AssignMasterComponents, {
- name: "nameNodeFederationWizardStep2Controller"
+ name: "nameNodeFederationWizardStep2Controller",
+
+ useServerValidation: false,
+
+ mastersToShow: ['NAMENODE'],
+
+ mastersToAdd: ['NAMENODE', 'NAMENODE'],
+
+ showCurrentPrefix: ['NAMENODE'],
+
+ showAdditionalPrefix: ['NAMENODE'],
+
+ showInstalledMastersFirst: true
+
});
diff --git a/ambari-web/app/routes/namenode_federation_routes.js b/ambari-web/app/routes/namenode_federation_routes.js
index 21b31b2..2b55174 100644
--- a/ambari-web/app/routes/namenode_federation_routes.js
+++ b/ambari-web/app/routes/namenode_federation_routes.js
@@ -111,6 +111,16 @@ module.exports = App.WizardRoute.extend({
return false;
},
next: function (router) {
+ var wizardController = router.get('nameNodeFederationWizardController');
+ var stepController = router.get('nameNodeFederationWizardStep2Controller');
+ var currentNN = stepController.get('servicesMasters').filterProperty('component_name', 'NAMENODE').filterProperty('isInstalled', true);
+ var additionalNN = stepController.get('servicesMasters').filterProperty('component_name', 'NAMENODE').filterProperty('isInstalled', false);
+ var rmHost = {
+ currentNN: currentNN.mapProperty('selectedHost'),
+ additionalNN: additionalNN.mapProperty('selectedHost')
+ };
+ wizardController.saveSelectedHosts(rmHost);
+ wizardController.saveMasterComponentHosts(stepController);
router.transitionTo('step3');
},
back: function (router) {
--
To stop receiving notification emails like this one, please contact
akovalenko@apache.org.