|
@@ -190,15 +190,17 @@ class InstallPackages(Script):
|
|
|
Logger.info("Configuration symlinks are not needed for {0}, only HDP-2.3+".format(stack_version))
|
|
|
return
|
|
|
|
|
|
- # if already on HDP 2.3, then there's nothing to do in terms of linking configs
|
|
|
- if self.current_hdp_stack_version and compare_versions(self.current_hdp_stack_version, '2.3') >= 0:
|
|
|
- Logger.info("The current cluster stack of {0} does not require linking configurations".format(stack_version))
|
|
|
- return
|
|
|
-
|
|
|
- # link configs for all known packages
|
|
|
for package_name, directories in conf_select.PACKAGE_DIRS.iteritems():
|
|
|
- conf_select.convert_conf_directories_to_symlinks(package_name, stack_version, directories,
|
|
|
- skip_existing_links = False, link_to = "backup")
|
|
|
+ # if already on HDP 2.3, then we should skip making conf.backup folders
|
|
|
+ if self.current_hdp_stack_version and compare_versions(self.current_hdp_stack_version, '2.3') >= 0:
|
|
|
+ Logger.info("The current cluster stack of {0} does not require backing up configurations; "
|
|
|
+ "only conf-select versioned config directories will be created.".format(stack_version))
|
|
|
+ # only link configs for all known packages
|
|
|
+ conf_select.link_component_conf_to_versioned_config(package_name, stack_version)
|
|
|
+ else:
|
|
|
+ # link configs and create conf.backup folders for all known packages
|
|
|
+ conf_select.convert_conf_directories_to_symlinks(package_name, stack_version, directories,
|
|
|
+ skip_existing_links = False, link_to = "backup")
|
|
|
|
|
|
|
|
|
def compute_actual_version(self):
|