Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 777522f2d -> 07b5cd2e5


AMBARI-18053. Use correct storm principal when Ranger Storm plugin is enabled 
(Mugdha Varadkar via smohanty)


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

Branch: refs/heads/branch-2.4
Commit: 07b5cd2e59a4bbee5fdcc2715bcd240114b592ff
Parents: 777522f
Author: Sumit Mohanty <[email protected]>
Authored: Sat Aug 6 07:40:40 2016 -0700
Committer: Sumit Mohanty <[email protected]>
Committed: Sat Aug 6 07:40:40 2016 -0700

----------------------------------------------------------------------
 .../STORM/0.9.1/package/scripts/params_linux.py        | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/07b5cd2e/ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/params_linux.py
 
b/ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/params_linux.py
index c6da1c8..1ee4422 100644
--- 
a/ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/params_linux.py
+++ 
b/ambari-server/src/main/resources/common-services/STORM/0.9.1/package/scripts/params_linux.py
@@ -316,8 +316,8 @@ if has_ranger_admin:
 
   if stack_supports_ranger_kerberos and security_enabled:
     policy_user = format('{storm_user},{storm_bare_jaas_principal}')
-    storm_ranger_plugin_config['policy.download.auth.users'] = storm_user
-    storm_ranger_plugin_config['tag.download.auth.users'] = storm_user
+    storm_ranger_plugin_config['policy.download.auth.users'] = policy_user
+    storm_ranger_plugin_config['tag.download.auth.users'] = policy_user
     storm_ranger_plugin_config['ambari.service.check.user'] = policy_user
 
     storm_ranger_plugin_repo = {
@@ -330,12 +330,9 @@ if has_ranger_admin:
 
   ranger_storm_principal = None
   ranger_storm_keytab = None
-  if stack_supports_ranger_kerberos and security_enabled and 'storm-nimbus' in 
status_params.component_directory.lower():
-    ranger_storm_principal = nimbus_jaas_principal
-    ranger_storm_keytab = nimbus_keytab_path
-  elif stack_supports_ranger_kerberos and security_enabled and 'storm-client' 
in status_params.component_directory.lower():
-    ranger_storm_principal = storm_ui_jaas_principal
-    ranger_storm_keytab = storm_ui_keytab_path
+  if stack_supports_ranger_kerberos and security_enabled:
+    ranger_storm_principal = storm_jaas_principal
+    ranger_storm_keytab = storm_keytab_path
 
   xa_audit_db_is_enabled = False
   ranger_audit_solr_urls = 
config['configurations']['ranger-admin-site']['ranger.audit.solr.urls']

Reply via email to