Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 9c72e4457 -> 15adeedae


AMBARI-20518 Stack Advisor reported an error: KeyError: 'nimbus.authorizer' 
during Test Kerberos Client command (dsen)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/15adeeda
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/15adeeda
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/15adeeda

Branch: refs/heads/branch-2.5
Commit: 15adeedaec75af3d473bec4a1d534cde95de5031
Parents: 9c72e44
Author: Dmytro Sen <[email protected]>
Authored: Tue Mar 21 19:53:47 2017 +0200
Committer: Dmytro Sen <[email protected]>
Committed: Tue Mar 21 19:54:46 2017 +0200

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.5/services/stack_advisor.py    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/15adeeda/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py 
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
index 9bfae8d..3100125 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/stack_advisor.py
@@ -499,7 +499,7 @@ class HDP25StackAdvisor(HDP24StackAdvisor):
     if security_enabled:
       if rangerPluginEnabled and (rangerPluginEnabled.lower() == 
'Yes'.lower()):
         putStormSiteProperty('nimbus.authorizer',ranger_authorizer_class)
-      elif rangerPluginEnabled and (rangerPluginEnabled.lower() == 
'No'.lower()) and 
(services["configurations"]["storm-site"]["properties"]["nimbus.authorizer"] == 
ranger_authorizer_class):
+      else:
         putStormSiteProperty('nimbus.authorizer', storm_authorizer_class)
     else:
       putStormSiteAttributes('nimbus.authorizer', 'delete', 'true')

Reply via email to