hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sam liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7053) Failed to rollback hdfs version from 2.4.1 to 2.2.0
Date Wed, 17 Sep 2014 06:58:34 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14136871#comment-14136871
] 

sam liu commented on HDFS-7053:
-------------------------------

Hi Jing,

Thanks for your comments! However, I still failed to rollback hadoop version on a non HA cluster.
I doubt this is a bug or did I miss any step? Below are my steps:
[A] Upgrade
1. Install Hadoop 2.2.0 cluster
2. Stop Hadoop services
3. Replace 2.2.0 binaries with 2.4.1 binaries
4. Start datanodes: $HADOOP_HOME/sbin/hadoop-daemon.sh start datanode
5. Start namenode with option upgrade: $HADOOP_HOME/sbin/hadoop-daemon.sh start namenode -upgrade
6. Start secondary namenode, tasktracker and jobtracker

Result: 
- Whole upgrade process could be completed successfully.

[B] Rollback
1. Stop all hadoop services
2. Replace 2.4.1 binaries with 2.2.0 binaries 
3. Start datanodes: $HADOOP_HOME/sbin/hadoop-daemon.sh start datanode
4. Start namenode with option upgrade: $HADOOP_HOME/sbin/hadoop-daemon.sh start namenode -rollback

Result:
- Namenode service could be started
- Datanodes failed with exception:
Issue: DataNode failed with following exception 
2014-09-17 11:04:51,416 INFO org.apache.hadoop.hdfs.server.common.Storage: Lock on /hadoop/hdfs/data/in_use.lock
acquired by nodename 817443@shihc071-public
2014-09-17 11:04:51,418 FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization
failed for block pool Block pool BP-977402492-9.181.64.185-1410497086460 (storage id ) service
to hostname/ip:9000
org.apache.hadoop.hdfs.server.common.IncorrectVersionException: Unexpected version of storage
directory /hadoop/hdfs/data. Reported: -55. Expecting = -47.
        at org.apache.hadoop.hdfs.server.common.Storage.setLayoutVersion(Storage.java:1082)
        at org.apache.hadoop.hdfs.server.datanode.DataStorage.setFieldsFromProperties(DataStorage.java:302)
        at org.apache.hadoop.hdfs.server.common.Storage.readProperties(Storage.java:921)

Thanks!

> Failed to rollback hdfs version from 2.4.1 to 2.2.0
> ---------------------------------------------------
>
>                 Key: HDFS-7053
>                 URL: https://issues.apache.org/jira/browse/HDFS-7053
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: ha, namenode
>    Affects Versions: 2.4.1
>            Reporter: sam liu
>            Priority: Blocker
>
> I can successfully upgrade from 2.2.0 to 2.4.1 with QJM HA enabled and with downtime,
but failed to rollback from 2.4.1 to 2.2.0. The error message:
>  2014-09-10 16:50:29,599 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Exception
in namenode join
>  org.apache.hadoop.HadoopIllegalArgumentException: Invalid startup option. Cannot perform
DFS upgrade with HA enabled.
>               at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1207)
>                at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1320)
>  2014-09-10 16:50:29,601 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message