You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2015/06/04 04:45:06 UTC
ambari git commit: AMBARI-11676. dfs.encryption.key.provider.uri is
not set in unsecure cluster with ranger kms enabled (srimanth)
Repository: ambari
Updated Branches:
refs/heads/trunk 33f24d575 -> 705c35a8b
AMBARI-11676. dfs.encryption.key.provider.uri is not set in unsecure cluster with ranger kms enabled (srimanth)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/705c35a8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/705c35a8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/705c35a8
Branch: refs/heads/trunk
Commit: 705c35a8b3c701fe0c6a50ce053239110f84dd5b
Parents: 33f24d5
Author: Srimanth Gunturi <sg...@hortonworks.com>
Authored: Wed Jun 3 19:29:37 2015 -0700
Committer: Srimanth Gunturi <sg...@hortonworks.com>
Committed: Wed Jun 3 19:44:49 2015 -0700
----------------------------------------------------------------------
.../src/main/resources/stacks/HDP/2.2/services/stack_advisor.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/705c35a8/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 e466a91..93f5f19 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
@@ -205,8 +205,7 @@ class HDP22StackAdvisor(HDP21StackAdvisor):
if "hadoop-env" in services["configurations"] and "keyserver_host" in services["configurations"]["hadoop-env"]["properties"] and "keyserver_port" in services["configurations"]["hadoop-env"]["properties"]:
keyserverHostsString = services["configurations"]["hadoop-env"]["properties"]["keyserver_host"]
keyserverPortString = services["configurations"]["hadoop-env"]["properties"]["keyserver_port"]
-
- if keyserverHostsString is None:
+ if keyserverHostsString is None or len(keyserverHostsString.strip()) < 1 :
# Caller did not specify any value - so we recommend where they are installed
rangerKMSServerHosts = self.getHostsWithComponent("RANGER_KMS", "RANGER_KMS_SERVER", services, hosts)
if rangerKMSServerHosts is not None and len(rangerKMSServerHosts) > 0: