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 ae2e31e  AMBARI-23601. NN Federation Wizard: Format NameNode fails due 
to stopped NameNodes (akovalenko)
ae2e31e is described below

commit ae2e31ea221f68c971bce0d5c467ab8a9b038b59
Author: Aleksandr Kovalenko <[email protected]>
AuthorDate: Tue Apr 17 19:07:56 2018 +0300

    AMBARI-23601. NN Federation Wizard: Format NameNode fails due to stopped 
NameNodes (akovalenko)
---
 .../main/admin/federation/step4_controller.js         |  7 ++++++-
 ambari-web/app/messages.js                            | 19 ++++++++++---------
 2 files changed, 16 insertions(+), 10 deletions(-)

diff --git 
a/ambari-web/app/controllers/main/admin/federation/step4_controller.js 
b/ambari-web/app/controllers/main/admin/federation/step4_controller.js
index 3105449..969b5bd 100644
--- a/ambari-web/app/controllers/main/admin/federation/step4_controller.js
+++ b/ambari-web/app/controllers/main/admin/federation/step4_controller.js
@@ -22,7 +22,7 @@ App.NameNodeFederationWizardStep4Controller = 
App.HighAvailabilityProgressPageCo
 
   name: "nameNodeFederationWizardStep4Controller",
 
-  commands: ['stopRequiredServices', 'reconfigureServices', 'installNameNode', 
'installZKFC', 'startJournalNodes', 'formatNameNode', 'formatZKFC', 
'startZKFC', 'startNameNode', 'bootstrapNameNode', 'createWidgets', 
'startZKFC2', 'startNameNode2', 'restartAllServices'],
+  commands: ['stopRequiredServices', 'reconfigureServices', 'installNameNode', 
'installZKFC', 'startJournalNodes', 'startNameNodes', 'formatNameNode', 
'formatZKFC', 'startZKFC', 'startNameNode', 'bootstrapNameNode', 
'createWidgets', 'startZKFC2', 'startNameNode2', 'restartAllServices'],
 
   tasksMessagesPrefix: 'admin.nameNodeFederation.wizard.step',
 
@@ -81,6 +81,11 @@ App.NameNodeFederationWizardStep4Controller = 
App.HighAvailabilityProgressPageCo
     this.updateComponent('JOURNALNODE', hostNames, "HDFS", "Start");
   },
 
+  startNameNodes: function () {
+    var hostNames = 
this.get('content.masterComponentHosts').filterProperty('component', 
'NAMENODE').filterProperty('isInstalled').mapProperty('hostName');
+    this.updateComponent('NAMENODE', hostNames, "HDFS", "Start");
+  },
+
   formatNameNode: function () {
     App.ajax.send({
       name: 'nameNode.federation.formatNameNode',
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 91dcdee..5dd9057 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -1695,15 +1695,16 @@ Em.I18n.translations = {
   'admin.nameNodeFederation.wizard.step4.task2.title': 'Install Additional 
NameNodes',
   'admin.nameNodeFederation.wizard.step4.task3.title': 'Install Additional 
ZKFCs',
   'admin.nameNodeFederation.wizard.step4.task4.title': 'Start JournalNodes',
-  'admin.nameNodeFederation.wizard.step4.task5.title': 'Format NameNode',
-  'admin.nameNodeFederation.wizard.step4.task6.title': 'Format ZKFC',
-  'admin.nameNodeFederation.wizard.step4.task7.title': 'Start ZKFC',
-  'admin.nameNodeFederation.wizard.step4.task8.title': 'Start NameNode',
-  'admin.nameNodeFederation.wizard.step4.task9.title': 'Bootstrap NameNode',
-  'admin.nameNodeFederation.wizard.step4.task10.title': 'Create widgets',
-  'admin.nameNodeFederation.wizard.step4.task11.title': 'Start ZKFC',
-  'admin.nameNodeFederation.wizard.step4.task12.title': 'Start NameNode',
-  'admin.nameNodeFederation.wizard.step4.task13.title': 'Restart Required 
Services',
+  'admin.nameNodeFederation.wizard.step4.task5.title': 'Start NameNodes',
+  'admin.nameNodeFederation.wizard.step4.task6.title': 'Format NameNode',
+  'admin.nameNodeFederation.wizard.step4.task7.title': 'Format ZKFC',
+  'admin.nameNodeFederation.wizard.step4.task8.title': 'Start ZKFC',
+  'admin.nameNodeFederation.wizard.step4.task9.title': 'Start NameNode',
+  'admin.nameNodeFederation.wizard.step4.task10.title': 'Bootstrap NameNode',
+  'admin.nameNodeFederation.wizard.step4.task11.title': 'Create widgets',
+  'admin.nameNodeFederation.wizard.step4.task12.title': 'Start ZKFC',
+  'admin.nameNodeFederation.wizard.step4.task13.title': 'Start NameNode',
+  'admin.nameNodeFederation.wizard.step4.task14.title': 'Restart Required 
Services',
 
   'admin.security.title':'Kerberos security has not been enabled',
   'admin.security.enabled': 'Kerberos security is enabled',

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to