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.

new to Hdp, why there's 2 folder under /usr/hdp/..., one is current and another is 2.5.xxx, it seems have the same content.

Highlighted

new to Hdp, why there's 2 folder under /usr/hdp/..., one is current and another is 2.5.xxx, it seems have the same content.

New Contributor
 
2 REPLIES 2
Highlighted

Re: new to Hdp, why there's 2 folder under /usr/hdp/..., one is current and another is 2.5.xxx, it seems have the same content.

Hi @gem LL,

This is normal, the "current" folder is just a link (not a copy) pointing to the folder with the version. This allows rolling upgrade when you want to install a new version: the new version will be sitting next to the old one, and it'll be just a link update (that's not all what is really happening but this gives you the idea). This way you can upgrade your HDP version without any service interruption assuming your services are installed in high availability.

Hope this helps.

Highlighted

Re: new to Hdp, why there's 2 folder under /usr/hdp/..., one is current and another is 2.5.xxx, it seems have the same content.

Super Mentor

@gem LL

This is how the HDP is designed (keeping the upgrade and rollback easy). This is because you might have older version of HDP content as well. But the "current" should be pointing to the latest (desired) one.

Example:

# ls /usr/hdp/
2.4.3.0-227  2.5.0.0-1245  current  share

.

Example:

[root@c6401 current]# cd /usr/hdp/current/hadoop-hdfs-namenode/

[root@c6401 hadoop-hdfs-namenode]# pwd 
/usr/hdp/current/hadoop-hdfs-namenode

[root@c6401 hadoop-hdfs-namenode]# pwd -P
/usr/hdp/2.5.0.0-1245/hadoop-hdfs

.

Following article explains it a bit more in detail with an explaination of "hdp-select" utility:

https://community.hortonworks.com/articles/2473/rolling-upgrade-express-upgrade-in-ambari.html

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