Updated Branches:
  refs/heads/branch-1.4.1 df31a72cb -> 4ac51a771

AMBARI-3450. NameNode HA Wizard: clarify steps for "Initialize Metadata" to 
avoid mistakes by the user. (yusaku)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/4ac51a77
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/4ac51a77
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/4ac51a77

Branch: refs/heads/branch-1.4.1
Commit: 4ac51a7718208e2b5e2314b9aebf8eb050159cc5
Parents: df31a72
Author: Yusaku Sako <[email protected]>
Authored: Thu Oct 3 14:40:02 2013 -0700
Committer: Yusaku Sako <[email protected]>
Committed: Thu Oct 3 14:40:02 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/messages.js                         | 17 ++++++++++++-----
 ambari-web/app/styles/application.less             |  2 +-
 .../main/admin/highAvailability/step8.hbs          |  4 +---
 3 files changed, 14 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/4ac51a77/ambari-web/app/messages.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index 828ed2b..4042d0e 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -741,15 +741,22 @@ Em.I18n.translations = {
   'admin.highAvailability.rollback.notice.inProgress':'Please wait while the 
wizard reverts back to the non-HA setup.',
 
   'admin.highAvailability.wizard.step8.body':
+    '<div class="alert alert-info">' +
     '<ol>' +
-    '<li>Login to the additional NameNode host <b>{2}</b>.</li>' +
-    '<li>Initialize the metadata for the additional NameNode by running:' +
-    '<div class="code-snippet">sudo su -l {0} -c \'hdfs namenode 
-bootstrapStandby\'</div></li>' +
     '<li>Login to the NameNode host <b>{1}</b>.</li>' +
     '<li>Initialize the metadata for NameNode automatic failover by running:' +
     '<div class="code-snippet">sudo su -l {0} -c \'hdfs zkfc 
-formatZK\'</div></li>' +
-    '<li>Please proceed once you have completed the steps above.</li>' +
-    '</ol>',
+    '</div>' +
+    '<div class="alert alert-info">' +
+    '<ol start="3">' +
+    '<li>Login to the Additional NameNode host <b>{2}</b>.<br>' +
+    '<div class="alert alert-warn"><strong>Important!</strong> Be sure to 
login to the Additional NameNode host.<br>This is a different host from the 
Steps 1 and 2 above.</div>' +
+    '</li>' +
+    '<li>Initialize the metadata for the Additional NameNode by running:' +
+    '<div class="code-snippet">sudo su -l {0} -c \'hdfs namenode 
-bootstrapStandby\'</div></li>' +
+    '</ol>' +
+    '</div>' +
+    'Please proceed once you have completed the steps above.',
   'admin.highAvailability.wizard.step6.body':
     '<ol>' +
     '<li>Login to the NameNode host <b>{1}</b>.</li>' +

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/4ac51a77/ambari-web/app/styles/application.less
----------------------------------------------------------------------
diff --git a/ambari-web/app/styles/application.less 
b/ambari-web/app/styles/application.less
index 8f01780..e374193 100644
--- a/ambari-web/app/styles/application.less
+++ b/ambari-web/app/styles/application.less
@@ -505,7 +505,7 @@ h1 {
       margin-left: 0;
     }
   }
-  #ha-step1, #ha-step4 {
+  #ha-step1, #ha-step4, #ha-step8 {
     .alert.alert-warn {
       margin-top: 10px;
       margin-bottom: 10px;

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/4ac51a77/ambari-web/app/templates/main/admin/highAvailability/step8.hbs
----------------------------------------------------------------------
diff --git a/ambari-web/app/templates/main/admin/highAvailability/step8.hbs 
b/ambari-web/app/templates/main/admin/highAvailability/step8.hbs
index 5a16406..ee65297 100644
--- a/ambari-web/app/templates/main/admin/highAvailability/step8.hbs
+++ b/ambari-web/app/templates/main/admin/highAvailability/step8.hbs
@@ -17,9 +17,7 @@
 }}
 <div id="ha-step8">
   <h2>{{t admin.highAvailability.wizard.step8.bodyHeader}}</h2>
-  <div class="alert alert-info">
-    {{{view.step8BodyText}}}
-  </div>
+  {{{view.step8BodyText}}}
   <div class="btn-area">
     <a class="btn btn-success pull-right" {{action next}}>{{t common.next}} 
&rarr;</a>
     <span class="pull-right btn-extra-info">{{!t 
admin.highAvailability.wizard.step8.metaNoInit}}</span>

Reply via email to