You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2015/12/16 03:21:21 UTC
incubator-ranger git commit: RANGER-785: Clean up ranger-tagsync
configuration - remove unnecessary default value
Repository: incubator-ranger
Updated Branches:
refs/heads/master e9e506085 -> 2d3bf53d9
RANGER-785: Clean up ranger-tagsync configuration - remove unnecessary default value
Signed-off-by: Madhan Neethiraj <ma...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/2d3bf53d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/2d3bf53d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/2d3bf53d
Branch: refs/heads/master
Commit: 2d3bf53d94d8cb70dc230bf273dfcec8f1af0c81
Parents: e9e5060
Author: Abhay Kulkarni <ak...@hortonworks.com>
Authored: Mon Dec 14 14:23:32 2015 -0800
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Tue Dec 15 18:14:18 2015 -0800
----------------------------------------------------------------------
tagsync/scripts/install.properties | 18 ++++++++++++++++--
.../src/main/resources/ranger-tagsync-default.xml | 4 ----
.../src/main/resources/ranger-tagsync-site.xml | 4 ----
3 files changed, 16 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/2d3bf53d/tagsync/scripts/install.properties
----------------------------------------------------------------------
diff --git a/tagsync/scripts/install.properties b/tagsync/scripts/install.properties
index b5ad580..95e87e5 100644
--- a/tagsync/scripts/install.properties
+++ b/tagsync/scripts/install.properties
@@ -55,7 +55,21 @@ TAGSYNC_ATLAS_KAFKA_ENDPOINTS = localhost:6667
TAGSYNC_ATLAS_ZOOKEEPER_ENDPOINT = localhost:2181
TAGSYNC_ATLAS_CONSUMER_GROUP = ranger_entities_consumer
-# Mapping from Atlas hive instance-name to Ranger service-name
+# Mapping from Atlas hive cluster-name to Ranger service-name
# this needs to be in format clusterName,componentType,serviceName;clusterName2,componentType2,serviceName2
# Note that there are no blanks anywhere in the value-string
-TAGSYNC_ATLAS_TO_RANGER_SERVICE_MAPPING = c0,hive,cl1_hive;c0,hbase,other_hbase
+#
+# For Hive, the notifications from Atlas include the name of the entities in the following format:
+# dbName@clusterName
+# dbName.tblName@clusterName
+# dbName.tblName.colName@clusterName
+#
+# Ranger-tagsync needs to derive the name of the Hive service (in Ranger) from the above entity names.
+# By default, Ranger computes Hive service name as: clusterName + “_hive".
+# If the name of the Hive service (in Ranger) is different in your environment, please use
+# following property to enable Ranger-tagsync to derive the correct Hive service name.
+#
+# TAGSYNC_ATLAS_TO_RANGER_SERVICE_MAPPING = clusterName,hive,rangerServiceName
+#
+
+TAGSYNC_ATLAS_TO_RANGER_SERVICE_MAPPING=
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/2d3bf53d/tagsync/src/main/resources/ranger-tagsync-default.xml
----------------------------------------------------------------------
diff --git a/tagsync/src/main/resources/ranger-tagsync-default.xml b/tagsync/src/main/resources/ranger-tagsync-default.xml
index 8649d06..b917d29 100644
--- a/tagsync/src/main/resources/ranger-tagsync-default.xml
+++ b/tagsync/src/main/resources/ranger-tagsync-default.xml
@@ -55,8 +55,4 @@
<value>tagadmin</value>
<description></description>
</property>
- <property>
- <name>ranger.tagsync.atlas.to.service.mapping</name>
- <value>c1,hive,cl1_hive</value>
- </property>
</configuration>
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/2d3bf53d/tagsync/src/main/resources/ranger-tagsync-site.xml
----------------------------------------------------------------------
diff --git a/tagsync/src/main/resources/ranger-tagsync-site.xml b/tagsync/src/main/resources/ranger-tagsync-site.xml
index 19532e9..44a9641 100644
--- a/tagsync/src/main/resources/ranger-tagsync-site.xml
+++ b/tagsync/src/main/resources/ranger-tagsync-site.xml
@@ -50,8 +50,4 @@
<value>File</value>
<description></description>
</property>
- <property>
- <name>ranger.tagsync.atlas.to.service.mapping</name>
- <value>c1,hive,cl1_hive</value>
- </property>
</configuration>