背景:
前两天将Cloudera Mananger和CDH统一从5.0.2升级到5.3.0,使用的parcels包,升级后一切正常,并且没有执行最后的操作bin/hadoopdfsadmin–finalizeUpgrade ,因为知道parcels包优势之一可以回滚,所以想顺便测试下是否可以回滚,所以就激活cdh5.0.2,现在parcels这边确实显示已经cdh5.0.2已
经激活,但是namenode重启失败,报错信息如下:
2015-05-17 19:46:22,008 INFO org.apache.hadoop.util.GSet: VM type = 64-bit
2015-05-17 19:46:22,009 INFO org.apache.hadoop.util.GSet: 0.029999999329447746% max memory 990.8 MB = 304.4 KB
2015-05-17 19:46:22,009 INFO org.apache.hadoop.util.GSet: capacity = 2^15 = 32768 entries
2015-05-17 19:46:22,012 INFO org.apache.hadoop.hdfs.server.namenode.AclConfigFlag: ACLs enabled? false
2015-05-17 19:46:22,071 INFO org.apache.hadoop.hdfs.server.common.Storage: Lock on /data/hadoop/nn/in_use.lock acquired by nodename 24812@namenode.xxx.xxx
2015-05-17 19:46:22,168 WARN org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Encountered exception loading fsimage
org.apache.hadoop.hdfs.server.common.IncorrectVersionException: Unexpected version of storage directory /data/hadoop/nn. Reported: -59. Expecting = -55.
at org.apache.hadoop.hdfs.server.common.StorageInfo.setLayoutVersion(StorageInfo.java:203)
at org.apache.hadoop.hdfs.server.common.StorageInfo.setFieldsFromProperties(StorageInfo.java:156)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.setFieldsFromProperties(NNStorage.java:608)
at org.apache.hadoop.hdfs.server.common.StorageInfo.readProperties(StorageInfo.java:135)
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:313)
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:206)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:880)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:639)
at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:440)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:496)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:652)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:637)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1286)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1352)
2015-05-17 19:46:22,185 INFO org.mortbay.log: Stopped SelectChannelConnector@e3ddba19.buyabs.corp:50070
2015-05-17 19:46:22,286 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: Stopping NameNode metrics system...
2015-05-17 19:46:22,287 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system stopped.
2015-05-17 19:46:22,287 INFO org.apache.hadoop.metrics2.impl.MetricsSystemImpl: NameNode metrics system shutdown complete.
2015-05-17 19:46:22,287 FATAL org.apache.hadoop.hdfs.server.namenode.NameNode: Exception in namenode join
org.apache.hadoop.hdfs.server.common.IncorrectVersionException: Unexpected version of storage directory /data/hadoop/nn. Reported: -59. Expecting = -55.
at org.apache.hadoop.hdfs.server.common.StorageInfo.setLayoutVersion(StorageInfo.java:203)
at org.apache.hadoop.hdfs.server.common.StorageInfo.setFieldsFromProperties(StorageInfo.java:156)
at org.apache.hadoop.hdfs.server.namenode.NNStorage.setFieldsFromProperties(NNStorage.java:608)
at org.apache.hadoop.hdfs.server.common.StorageInfo.readProperties(StorageInfo.java:135)
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverStorageDirs(FSImage.java:313)
at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:206)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:880)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:639)
at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:440)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:496)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:652)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:637)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1286)
at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1352)
2015-05-17 19:46:22,292 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1
2015-05-17 19:46:22,294 INFO org.apache.hadoop.hdfs.server.namenode.NameNode: SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down NameNode at namenode.xxx.xxx/NameNodeIp
************************************************************/
有谁有遇到同样的问题?怎么解决?
|
|