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.

How to use versioned config directories?

Highlighted

How to use versioned config directories?

New Contributor

When we start services via Ambari, startup logs for all services include a line like :

"Checking if need to create versioned conf dir /etc/hadoop/2.4.2.0-258/0"

Even if the actual version of config on Ambari is lest say 15, the check is always for /etc/hadoop/2.4.2.0-258/0 and not /etc/hadoop/2.4.2.0-258/15

I also looked at ambari source code at https://github.com/apache/ambari/blob/ffc3c7111208c4446174328300a099971c294a1a/ambari-common/src/mai... and the check for a version dir# 0 seems to be hardcoded

When / are versioned config directories ever created?

1 REPLY 1

Re: How to use versioned config directories?

Super Guru
@Guru Prateek Pinnadhari

Looks like 0 represents current version. Other versions are stored in ambari database.

You can have a look at below thread for more detail.

https://community.hortonworks.com/questions/41719/can-i-delete-an-ambari-configuration-version.html

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