Add auto configs to HDP plugin

Add ability to automaticaly generate better configurations for
cluster. All calculations of recommended config values is executed
by Ambari itself according to 'ALWAYS_APPLY' strategy.

Change-Id: I98f14e4578397d6a8d14438e368485d5dbeaeed2
This commit is contained in:
Michael Ionkin 2016-08-23 15:04:24 +03:00
parent 4427f7698c
commit 2e78134c8f
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
features:
- Add ability to automaticaly generate better configurations for
Ambari cluster by using 'ALWAYS_APPLY' strategy

View File

@ -335,6 +335,10 @@ def _build_ambari_cluster_template(cluster):
"default_password": uuidutils.generate_uuid(),
"host_groups": []
}
if cluster.use_autoconfig:
cl_tmpl["config_recommendation_strategy"] = "ALWAYS_APPLY"
if kerberos.is_kerberos_security_enabled(cluster):
cl_tmpl["credentials"] = _get_credentials(cluster)
cl_tmpl["security"] = {"type": "KERBEROS"}