hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinayakumar B <vinayakuma...@huawei.com>
Subject RE: HDFS upgrade problem of fsImage
Date Thu, 21 Nov 2013 05:28:37 GMT
Looks like you have already have upgraded cluster.. And you are trying to upgrade one more
time.


-----Original Message-----
From: Azuryy Yu [mailto:azuryyyu@gmail.com] 
Sent: 21 November 2013 09:49
To: hdfs-dev@hadoop.apache.org; user@hadoop.apache.org
Subject: HDFS upgrade problem of fsImage

Hi Dear,

I have a small test cluster with hadoop-2.0x, and HA configuraded, but I want to upgrade to
hadoop-2.2.

I dont't want to stop cluster during upgrade, so my steps are:

1)  on standby NN: hadoop-dameon.sh stop namenode
2)  remove HA configuration in the conf
3)   hadoop-daemon.sh start namenode -upgrade -clusterID test-cluster

but Exception in the NN log, so how to upgrade and don't stop the whole cluster.
Thanks.


org.apache.hadoop.hdfs.server.common.InconsistentFSStateException:
Directory /hdfs/name is in an inconsistent state: previous fs state should not exist during
upgrade. Finalize or rollback first.
        at
org.apache.hadoop.hdfs.server.namenode.FSImage.doUpgrade(FSImage.java:323)
        at
org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:248)
        at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:858)
        at
org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:620)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:445)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:494)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:692)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:677)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1279)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1345)

Mime
View raw message