HDFS-8226. Non-HA rollback compatibility broken (Contributed by J.Andreina)

This commit is contained in:
Vinayakumar B 2015-05-08 15:24:36 +05:30
parent 2401ff76be
commit e01c1a979c
3 changed files with 8 additions and 3 deletions

View File

@ -755,6 +755,8 @@ Release 2.7.1 - UNRELEASED
HDFS-7980. Incremental BlockReport will dramatically slow down namenode HDFS-7980. Incremental BlockReport will dramatically slow down namenode
startup. (Walter Su via szetszwo) startup. (Walter Su via szetszwo)
HDFS-8226. Non-HA rollback compatibility broken (J.Andreina via vinayakumarb)
Release 2.7.0 - 2015-04-20 Release 2.7.0 - 2015-04-20
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -48,13 +48,14 @@ fi
# get arguments # get arguments
if [[ $# -ge 1 ]]; then if [[ $# -ge 1 ]]; then
nameStartOpt="$1" startOpt="$1"
shift shift
case "$nameStartOpt" in case "$startOpt" in
-upgrade) -upgrade)
nameStartOpt="$startOpt"
;; ;;
-rollback) -rollback)
dataStartOpt="$nameStartOpt" dataStartOpt="$startOpt"
;; ;;
*) *)
hadoop_exit_with_usage 1 hadoop_exit_with_usage 1

View File

@ -318,6 +318,8 @@ When Hadoop is upgraded on an existing cluster, as with any software upgrade, it
* stop the cluster and distribute earlier version of Hadoop. * stop the cluster and distribute earlier version of Hadoop.
* run the rollback command on the namenode (`bin/hdfs namenode -rollback`).
* start the cluster with rollback option. (`sbin/start-dfs.sh -rollback`). * start the cluster with rollback option. (`sbin/start-dfs.sh -rollback`).
When upgrading to a new version of HDFS, it is necessary to rename or delete any paths that are reserved in the new version of HDFS. If the NameNode encounters a reserved path during upgrade, it will print an error like the following: When upgrading to a new version of HDFS, it is necessary to rename or delete any paths that are reserved in the new version of HDFS. If the NameNode encounters a reserved path during upgrade, it will print an error like the following: