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-238: Fix for build errors due to changes in HIVE-9350
Date Sat, 07 Feb 2015 01:54:52 GMT
Repository: incubator-ranger
Updated Branches:
  refs/heads/master 163a6d0a5 -> 45e335c8f


RANGER-238: Fix for build errors due to changes in HIVE-9350


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

Branch: refs/heads/master
Commit: 45e335c8fb4aeb0ee922ca7c669c86d3d1324e02
Parents: 163a6d0
Author: Madhan Neethiraj <madhan@apache.org>
Authored: Fri Feb 6 17:45:08 2015 -0800
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Fri Feb 6 17:45:08 2015 -0800

----------------------------------------------------------------------
 .../hive/authorizer/RangerHiveAuthorizer.java   | 21 ++++++++++++++++++++
 pom.xml                                         |  2 +-
 2 files changed, 22 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/45e335c8/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
----------------------------------------------------------------------
diff --git a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
index cc56f58..f95eca4 100644
--- a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
+++ b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
@@ -262,6 +262,27 @@ public class RangerHiveAuthorizer extends RangerHiveAuthorizerBase {
 			}
 		}
 	}
+
+	/**
+	 * Check if user has privileges to do this action on these objects
+	 * @param hiveOpType
+	 * @param inputsHObjs
+	 * @param outputHObjs
+	 * @param context
+	 * @throws HiveAuthzPluginException
+	 * @throws HiveAccessControlException
+	 */
+	@Override
+	public List<HivePrivilegeObject> filterListCmdObjects(List<HivePrivilegeObject>
objs,
+														  HiveAuthzContext          context)
+		      throws HiveAuthzPluginException, HiveAccessControlException {
+		List<HivePrivilegeObject> ret = null;
+
+		// TODO: only the objects the user has access-to should be added to 'ret'
+		ret = objs;
+
+		return ret;
+	}
 	
 	private List<RangerHiveObjectAccessInfo> getObjectAccessInfo(HiveOperationType   
   hiveOpType,
 														   List<HivePrivilegeObject> inputsHObjs,

http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/45e335c8/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 44d8df5..d3f4ec8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,7 +129,7 @@
 		<hadoop.version>2.6.0</hadoop.version>
 		<hamcrest.all.version>1.3</hamcrest.all.version>
 		<hbase.version>0.99.2</hbase.version>
-		<hive.version>0.14.0</hive.version>
+		<hive.version>1.2.0-SNAPSHOT</hive.version>
 		<calcite.version>0.9.2-incubating</calcite.version>
 		<tez.version>0.5.2</tez.version>
 		<javassist.version>3.12.1.GA</javassist.version>


Mime
View raw message