Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

CDH downgrade from 5.5 to 5.3

Solved Go to solution

CDH downgrade from 5.5 to 5.3

New Contributor

Hi,

 

Does somebody happen to know whether CDH can be downgraded from 5.5.x to 5.3/5.4?

 

I tried to use old parcel but then HDFS namenodes fails to start due to "Unexpected version of storage directory .../dfs/nn".

 

Also I found the post https://community.cloudera.com/t5/Cloudera-Manager-Installation/Downgrade-Procedure/td-p/25430 where it was said that Cloudera didn't support downgrade operations. But maybe somebody met (un)official instructions how to do it manually?

 

Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: CDH downgrade from 5.5 to 5.3

Master Collaborator

@mstepanov here's the background, if I remember correctly:

 

1) the reason rollbacks can be impossible in certain circumstances in HDFS is because sometimes the metadata is changed between versions in non-backward-compatible ways.  Basically the namenode's fsimage and each HDFS block in the cluster get re-encoded with new bits of metadata that weren't available and therefore have no meaning in the older CDH version.

 

2) we don't always update the HDFS metadata in non-backward compatible ways between releases, but when we do it's usually major releases (eg. CDH4 to CDH5).  

 

3) If no HDFS metadata changes were made between your original and upgraded version, rollback is possible in limited fashion.

 

4) Even if metadata changes were made, you can still rollback IF you haven't finalized the upgrade yet.  See this doc for rollback procedures between CDH5 and CDH4.

 

Your best bet is to have a solid upgrade plan and test it thoroughly (UAT, QA, and regression) in a similarly configured staging environment prior to upgrade.

4 REPLIES 4

Re: CDH downgrade from 5.5 to 5.3

Community Manager

Out of curiosity, why do you want to downgrade? Perhaps there is another way to reach your overall goal.



Cy Jervis, Community Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:
Community Guidelines
How to use the forum

Re: CDH downgrade from 5.5 to 5.3

New Contributor

I'm going to upgrade production cluster so would like to have a possibility to restore old CDH in case of some critical issues. Cluster is located on hardware servers so I cannot use snapshots.

Re: CDH downgrade from 5.5 to 5.3

Master Collaborator

@mstepanov here's the background, if I remember correctly:

 

1) the reason rollbacks can be impossible in certain circumstances in HDFS is because sometimes the metadata is changed between versions in non-backward-compatible ways.  Basically the namenode's fsimage and each HDFS block in the cluster get re-encoded with new bits of metadata that weren't available and therefore have no meaning in the older CDH version.

 

2) we don't always update the HDFS metadata in non-backward compatible ways between releases, but when we do it's usually major releases (eg. CDH4 to CDH5).  

 

3) If no HDFS metadata changes were made between your original and upgraded version, rollback is possible in limited fashion.

 

4) Even if metadata changes were made, you can still rollback IF you haven't finalized the upgrade yet.  See this doc for rollback procedures between CDH5 and CDH4.

 

Your best bet is to have a solid upgrade plan and test it thoroughly (UAT, QA, and regression) in a similarly configured staging environment prior to upgrade.

Highlighted

Re: CDH downgrade from 5.5 to 5.3

New Contributor

Clint, thank you for this information!

Don't have an account?
Coming from Hortonworks? Activate your account here