AMBARI-13702. Consistency check failed when try to deploy ZK+STORM only cluster for HDP 2.3 stack.(vbrodetskyi)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ac0db6e2 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ac0db6e2 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ac0db6e2 Branch: refs/heads/branch-dev-patch-upgrade Commit: ac0db6e25246a4067da6ad1e9d6b17b7a814b5a5 Parents: 4c3be39 Author: Vitaly Brodetskyi <vbrodets...@hortonworks.com> Authored: Wed Nov 4 11:01:14 2015 +0200 Committer: Vitaly Brodetskyi <vbrodets...@hortonworks.com> Committed: Wed Nov 4 11:01:14 2015 +0200 ---------------------------------------------------------------------- .../main/resources/stacks/HDP/2.2/services/stack_advisor.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ac0db6e2/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py index 06519ac..8238481 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py +++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py @@ -779,7 +779,8 @@ class HDP22StackAdvisor(HDP21StackAdvisor): def recommendStormConfigurations(self, configurations, clusterData, services, hosts): putStormSiteProperty = self.putProperty(configurations, "storm-site", services) putStormSiteAttributes = self.putPropertyAttribute(configurations, "storm-site") - core_site = services["configurations"]["core-site"]["properties"] + if "core-site" in services["configurations"]: + core_site = services["configurations"]["core-site"]["properties"] stackVersion = services["Versions"]["stack_version"] if "ranger-env" in services["configurations"] and "ranger-storm-plugin-properties" in services["configurations"] and \ "ranger-storm-plugin-enabled" in services["configurations"]["ranger-env"]["properties"]: @@ -804,7 +805,8 @@ class HDP22StackAdvisor(HDP21StackAdvisor): else: rangerClass = 'org.apache.ranger.authorization.storm.authorizer.RangerStormAuthorizer' # Cluster is kerberized - if ('hadoop.security.authentication' in core_site and core_site['hadoop.security.authentication'] == 'kerberos'): + if "core-site" in services["configurations"] and \ + ('hadoop.security.authentication' in core_site and core_site['hadoop.security.authentication'] == 'kerberos'): if rangerPluginEnabled and (rangerPluginEnabled.lower() == 'Yes'.lower()): putStormSiteProperty('nimbus.authorizer',rangerClass) elif (services["configurations"]["storm-site"]["properties"]["nimbus.authorizer"] == rangerClass):