Trouble shooting by upgrading from CDH5 b2 to CDH 5.0.0 GA
if HDFS service can not be started, error message in Cloudera Manager looks like:
java.io.IOException: File system image contains an old layout version -51. An upgrade to version -55 is required. Please restart NameNode with the "-rollingUpgrade started" option if a rolling upgraded is already started; or restart NameNode with the "UPGRADE" to start a new upgrade.
try to upgrade namenode manually with this command:
sudo -u hdfs hdfs --config /var/run/cloudera-scm-agent/process/XXX-hdfs-NAMENODE namenode -upgrade
(the "XXX" in XXX-hdfs-NAMENODE is the process_id, try to find yours in folder /var/run/cloudera-scm-agent/process/)
if there is warning shows that the upgrade is not finalized, try:
For My Case, upgrading to CDH 5.2.0, resolve the issue from Cloudera Manager as below:
ReplyDelete- CM > HDFS > Action > Stop
- CM > HDFS > Action > Upgrade HDFS Metadata
@obaid you are right, it worked also for me
ReplyDelete