You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/01/27 18:17:51 UTC

[40/49] ambari git commit: AMBARI-19739 Stack changes to allow : Hive Interactive plugin to communicate with external Ranger (mugdha)

AMBARI-19739 Stack changes to allow : Hive Interactive plugin to communicate with external Ranger (mugdha)


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

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 2be01fbf1a22b8bf7bc5a8744196c0f8ed8bbd86
Parents: 9ebe170
Author: Mugdha Varadkar <mu...@apache.org>
Authored: Fri Jan 27 12:10:55 2017 +0530
Committer: Mugdha Varadkar <mu...@apache.org>
Committed: Fri Jan 27 16:17:22 2017 +0530

----------------------------------------------------------------------
 .../package/scripts/setup_ranger_hive_interactive.py           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2be01fbf/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive_interactive.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive_interactive.py b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive_interactive.py
index 2cbe952..de2e580 100644
--- a/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive_interactive.py
+++ b/ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/setup_ranger_hive_interactive.py
@@ -22,7 +22,7 @@ from resource_management.core.logger import Logger
 def setup_ranger_hive_interactive(upgrade_type = None):
   import params
 
-  if params.has_ranger_admin:
+  if params.enable_ranger_hive:
 
     stack_version = None
 
@@ -34,7 +34,7 @@ def setup_ranger_hive_interactive(upgrade_type = None):
     else:
       Logger.info("Hive2: Setup ranger: command retry not enabled thus skipping if ranger admin is down !")
 
-    if params.xml_configurations_supported and params.enable_ranger_hive and params.xa_audit_hdfs_is_enabled:
+    if params.xml_configurations_supported and params.xa_audit_hdfs_is_enabled:
       params.HdfsResource("/ranger/audit",
                          type="directory",
                          action="create_on_execute",
@@ -74,4 +74,4 @@ def setup_ranger_hive_interactive(upgrade_type = None):
                           component_user_principal=params.hive_principal if params.security_enabled else None,
                           component_user_keytab=params.hive_server2_keytab if params.security_enabled else None)
   else:
-    Logger.info('Ranger admin not installed')
+    Logger.info('Ranger Hive plugin is not enabled')