ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject incubator-ranger git commit: RANGER-895: update hive servicedef to reference Hive built-in methods for masking
Date Thu, 05 May 2016 06:00:28 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/master ea5bf67e7 -> b4157cfa1


RANGER-895: update hive servicedef to reference Hive built-in methods for masking


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/b4157cfa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/b4157cfa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/b4157cfa

Branch: refs/heads/master
Commit: b4157cfa16469153984999debe2afdb187f0701b
Parents: ea5bf67
Author: Madhan Neethiraj <madhan@apache.org>
Authored: Tue May 3 09:10:29 2016 -0700
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Wed May 4 22:59:20 2016 -0700

----------------------------------------------------------------------
 .../service-defs/ranger-servicedef-hive.json    | 20 ++++++++++----------
 src/main/assembly/hive-agent.xml                |  1 -
 2 files changed, 10 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/b4157cfa/agents-common/src/main/resources/service-defs/ranger-servicedef-hive.json
----------------------------------------------------------------------
diff --git a/agents-common/src/main/resources/service-defs/ranger-servicedef-hive.json b/agents-common/src/main/resources/service-defs/ranger-servicedef-hive.json
index 4bb2607..777165a 100644
--- a/agents-common/src/main/resources/service-defs/ranger-servicedef-hive.json
+++ b/agents-common/src/main/resources/service-defs/ranger-servicedef-hive.json
@@ -253,7 +253,7 @@
 				"name": "MASK",
 				"label": "Mask",
 				"description": "Replace lowercase with 'x', uppercase with 'X', digits with '0'",
-				"transformer": "default.mask({col})",
+				"transformer": "mask({col})",
 				"dataMaskOptions": {
 				}
 			},
@@ -262,21 +262,21 @@
 				"name": "MASK_SHOW_LAST_4",
 				"label": "Partial mask: show last 4",
 				"description": "Show last 4 characters; replace rest with 'x'",
-				"transformer": "default.mask_show_last_n({col}, 4, 'x', 'x', 'x', -1, '1')"
+				"transformer": "mask_show_last_n({col}, 4, 'x', 'x', 'x', -1, '1')"
 			},
 			{
 				"itemId": 3,
 				"name": "MASK_SHOW_FIRST_4",
 				"label": "Partial mask: show first 4",
 				"description": "Show first 4 characters; replace rest with 'x'",
-				"transformer": "default.mask_show_first_n({col}, 4, 'x', 'x', 'x', -1, '1')"
+				"transformer": "mask_show_first_n({col}, 4, 'x', 'x', 'x', -1, '1')"
 			},
 			{
 				"itemId": 4,
 				"name": "MASK_HASH",
 				"label": "Hash",
 				"description": "Hash the value",
-				"transformer": "default.mask_hash({col})"
+				"transformer": "mask_hash({col})"
 			},
 			{
 				"itemId": 5,
@@ -295,42 +295,42 @@
 				"name": "MASK_DATE_DAY",
 				"label": "Date: mask day",
 				"description": "Date: mask day",
-				"transformer": "default.mask({col}, 'x', 'x', 'x', -1, '1', 1, -1, -1)"
+				"transformer": "mask({col}, 'x', 'x', 'x', -1, '1', 1, -1, -1)"
 			},
 			{
 				"itemId": 8,
 				"name": "MASK_DATE_MONTH",
 				"label": "Date: mask month",
 				"description": "Date: mask month",
-				"transformer": "default.mask({col}, 'x', 'x', 'x', -1, '1', -1, 0, -1)"
+				"transformer": "mask({col}, 'x', 'x', 'x', -1, '1', -1, 0, -1)"
 			},
 			{
 				"itemId": 9,
 				"name": "MASK_DATE_YEAR",
 				"label": "Date: mask year",
 				"description": "Date: mask year",
-				"transformer": "default.mask({col}, 'x', 'x', 'x', -1, '1', -1, -1, 0)"
+				"transformer": "mask({col}, 'x', 'x', 'x', -1, '1', -1, -1, 0)"
 			},
 			{
 				"itemId": 10,
 				"name": "MASK_DATE_SHOW_DAY",
 				"label": "Date: show only day",
 				"description": "Date: show only day",
-				"transformer": "default.mask({col}, 'x', 'x', 'x', -1, '1', -1, 0, 0)"
+				"transformer": "mask({col}, 'x', 'x', 'x', -1, '1', -1, 0, 0)"
 			},
 			{
 				"itemId": 11,
 				"name": "MASK_DATE_SHOW_MONTH",
 				"label": "Date: show only month",
 				"description": "Date: show only month",
-				"transformer": "default.mask({col}, 'x', 'x', 'x', -1, '1', 1, -1, 0)"
+				"transformer": "mask({col}, 'x', 'x', 'x', -1, '1', 1, -1, 0)"
 			},
 			{
 				"itemId": 12,
 				"name": "MASK_DATE_SHOW_YEAR",
 				"label": "Date: show only year",
 				"description": "Date: show only year",
-				"transformer": "default.mask({col}, 'x', 'x', 'x', -1, '1', 1, 0, -1)"
+				"transformer": "mask({col}, 'x', 'x', 'x', -1, '1', 1, 0, -1)"
 			}
 		]
 	},

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/b4157cfa/src/main/assembly/hive-agent.xml
----------------------------------------------------------------------
diff --git a/src/main/assembly/hive-agent.xml b/src/main/assembly/hive-agent.xml
index d79dcbf..92a312a 100644
--- a/src/main/assembly/hive-agent.xml
+++ b/src/main/assembly/hive-agent.xml
@@ -35,7 +35,6 @@
      <includes>
 	  <include>org.apache.ranger:ranger-hive-plugin-shim</include>
 	  <include>org.apache.ranger:ranger-plugin-classloader</include>
-	  <include>org.apache.ranger:ranger-hive-utils</include>
      </includes>
     </moduleSet>
     <moduleSet>


Mime
View raw message