Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B4CC17C55 for ; Wed, 15 Apr 2015 20:11:25 +0000 (UTC) Received: (qmail 80165 invoked by uid 500); 15 Apr 2015 20:11:24 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 80097 invoked by uid 500); 15 Apr 2015 20:11:24 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 80088 invoked by uid 99); 15 Apr 2015 20:11:24 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2015 20:11:24 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A43CDE050B; Wed, 15 Apr 2015 20:11:24 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jing9@apache.org To: common-commits@hadoop.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: HDFS-7934. Update RollingUpgrade rollback documentation: should use bootstrapstandby for standby NN. Contributed by J. Andreina. Date: Wed, 15 Apr 2015 20:11:24 +0000 (UTC) Repository: hadoop Updated Branches: refs/heads/branch-2 d4dd97eab -> 725621d95 HDFS-7934. Update RollingUpgrade rollback documentation: should use bootstrapstandby for standby NN. Contributed by J. Andreina. (cherry picked from commit b172d03595d1591e7f542791224607d8c5fce3e2) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/725621d9 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/725621d9 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/725621d9 Branch: refs/heads/branch-2 Commit: 725621d95a833f813e2164e32b33984e1c1ee29a Parents: d4dd97e Author: Jing Zhao Authored: Wed Apr 15 13:10:38 2015 -0700 Committer: Jing Zhao Committed: Wed Apr 15 13:11:15 2015 -0700 ---------------------------------------------------------------------- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/site/xdoc/HdfsRollingUpgrade.xml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/725621d9/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 4fcfc06..5c8b2d5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -207,6 +207,9 @@ Release 2.7.1 - UNRELEASED HDFS-8151. Always use snapshot path as source when invalid snapshot names are used for diff based distcp. (jing9) + HDFS-7934. Update RollingUpgrade rollback documentation: should use + bootstrapstandby for standby NN. (J. Andreina via jing9) + Release 2.7.0 - UNRELEASED INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/725621d9/hadoop-hdfs-project/hadoop-hdfs/src/site/xdoc/HdfsRollingUpgrade.xml ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/xdoc/HdfsRollingUpgrade.xml b/hadoop-hdfs-project/hadoop-hdfs/src/site/xdoc/HdfsRollingUpgrade.xml index a62198f..8fd4f1c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/xdoc/HdfsRollingUpgrade.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/xdoc/HdfsRollingUpgrade.xml @@ -263,14 +263,16 @@

Rollback from a newer release to the pre-upgrade release is always supported. However, it cannot be done in a rolling fashion. It requires cluster downtime. + Suppose NN1 and NN2 are respectively in active and standby states. Below are the steps for rollback:

  • Rollback HDFS
    1. Shutdown all NNs and DNs.
    2. Restore the pre-upgrade release in all machines.
    3. -
    4. Start NNs with the +
    5. Start NN1 as Active with the "-rollingUpgrade rollback" option.
    6. +
    7. Run `-bootstrapStandby' on NN2 and start it normally as standby.
    8. Start DNs with the "-rollback" option.