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/04/12 16:32:33 UTC

[ambari] branch trunk updated: AMBARI-23559. Journalnode restart step is required when edits dir is changed (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 81a6957  AMBARI-23559. Journalnode restart step is required when edits dir is changed (akovalenko)
81a6957 is described below

commit 81a6957a7a48f1d664e357142e82708d5a745e8e
Author: Aleksandr Kovalenko <ak...@apache.org>
AuthorDate: Thu Apr 12 16:43:25 2018 +0300

    AMBARI-23559. Journalnode restart step is required when edits dir is changed (akovalenko)
---
 .../main/admin/federation/step4_controller.js      | 31 +++++++++++++++++++++-
 ambari-web/app/messages.js                         | 19 ++++++-------
 2 files changed, 40 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 c9c6557..ff609f7 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: ['reconfigureServices', 'installNameNode', 'installZKFC', 'formatNameNode', 'formatZKFC', 'startZKFC', 'startNameNode', 'bootstrapNameNode', 'createWidgets', 'startZKFC2', 'startNameNode2', 'restartAllServices'],
+  commands: ['reconfigureServices', 'installNameNode', 'installZKFC', 'restartJournalNodes', 'formatNameNode', 'formatZKFC', 'startZKFC', 'startNameNode', 'bootstrapNameNode', 'createWidgets', 'startZKFC2', 'startNameNode2', 'restartAllServices'],
 
   tasksMessagesPrefix: 'admin.nameNodeFederation.wizard.step',
 
@@ -72,6 +72,35 @@ App.NameNodeFederationWizardStep4Controller = App.HighAvailabilityProgressPageCo
     this.createInstallComponentTask('ZKFC', this.get('newNameNodeHosts'), "HDFS");
   },
 
+  restartJournalNodes: function () {
+    var context = "Restart JournalNodes";
+
+    var resource_filters = {
+      component_name: "JOURNALNODE",
+      hosts: App.HostComponent.find().filterProperty('componentName', 'JOURNALNODE').mapProperty('hostName').join(','),
+      service_name: "HDFS"
+    };
+
+    var operation_level = {
+      level: "HOST_COMPONENT",
+      cluster_name: this.get('content.cluster.name'),
+      service_name: "HDFS",
+      hostcomponent_name: "JOURNALNODE"
+    };
+
+    App.ajax.send({
+      name: 'restart.hostComponents',
+      sender: this,
+      data: {
+        context: context,
+        resource_filters: [resource_filters],
+        operation_level: operation_level
+      },
+      success: 'startPolling',
+      error: 'onTaskError'
+    });
+  },
+
   formatNameNode: function () {
     App.ajax.send({
       name: 'nameNode.federation.formatNameNode',
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index ee4492f..fbd7dd0 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -1692,15 +1692,16 @@ Em.I18n.translations = {
   'admin.nameNodeFederation.wizard.step4.task0.title': 'Reconfigure Services',
   'admin.nameNodeFederation.wizard.step4.task1.title': 'Install Additional NameNodes',
   'admin.nameNodeFederation.wizard.step4.task2.title': 'Install Additional ZKFCs',
-  'admin.nameNodeFederation.wizard.step4.task3.title': 'Format NameNode',
-  'admin.nameNodeFederation.wizard.step4.task4.title': 'Format ZKFC',
-  'admin.nameNodeFederation.wizard.step4.task5.title': 'Start ZKFC',
-  'admin.nameNodeFederation.wizard.step4.task6.title': 'Start NameNode',
-  'admin.nameNodeFederation.wizard.step4.task7.title': 'Bootstrap NameNode',
-  'admin.nameNodeFederation.wizard.step4.task8.title': 'Create widgets',
-  'admin.nameNodeFederation.wizard.step4.task9.title': 'Start ZKFC',
-  'admin.nameNodeFederation.wizard.step4.task10.title': 'Start NameNode',
-  'admin.nameNodeFederation.wizard.step4.task11.title': 'Restart Required Services',
+  'admin.nameNodeFederation.wizard.step4.task3.title': 'Restart JournalNodes',
+  'admin.nameNodeFederation.wizard.step4.task4.title': 'Format NameNode',
+  'admin.nameNodeFederation.wizard.step4.task5.title': 'Format ZKFC',
+  'admin.nameNodeFederation.wizard.step4.task6.title': 'Start ZKFC',
+  'admin.nameNodeFederation.wizard.step4.task7.title': 'Start NameNode',
+  'admin.nameNodeFederation.wizard.step4.task8.title': 'Bootstrap NameNode',
+  'admin.nameNodeFederation.wizard.step4.task9.title': 'Create widgets',
+  'admin.nameNodeFederation.wizard.step4.task10.title': 'Start ZKFC',
+  'admin.nameNodeFederation.wizard.step4.task11.title': 'Start NameNode',
+  'admin.nameNodeFederation.wizard.step4.task12.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
akovalenko@apache.org.