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 2016/03/24 01:48:02 UTC

incubator-ranger git commit: RANGER-895: reverted to using HiveAuthorizer interface, instead of AbstractHiveAuthorizer class

Repository: incubator-ranger
Updated Branches:
  refs/heads/master 9fd63d006 -> 147ff4b11


RANGER-895: reverted to using HiveAuthorizer interface, instead of AbstractHiveAuthorizer class


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

Branch: refs/heads/master
Commit: 147ff4b11efcea5d5443ae5bc6c7867ad6626734
Parents: 9fd63d0
Author: Madhan Neethiraj <ma...@apache.org>
Authored: Wed Mar 23 17:40:38 2016 -0700
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Wed Mar 23 17:40:38 2016 -0700

----------------------------------------------------------------------
 .../hive/authorizer/RangerHiveAuthorizerBase.java            | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/147ff4b1/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizerBase.java
----------------------------------------------------------------------
diff --git a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizerBase.java b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizerBase.java
index fff5afe..724c931 100644
--- a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizerBase.java
+++ b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizerBase.java
@@ -28,7 +28,7 @@ import org.apache.hadoop.hive.conf.HiveConf.ConfVars;
 import org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider;
 import org.apache.hadoop.hive.ql.security.authorization.plugin.DisallowTransformHook;
 import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException;
-import org.apache.hadoop.hive.ql.security.authorization.plugin.AbstractHiveAuthorizer;
+import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizer;
 import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzPluginException;
 import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzSessionContext;
 import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthzSessionContext.CLIENT_TYPE;
@@ -41,7 +41,7 @@ import org.apache.hadoop.hive.ql.security.authorization.plugin.SettableConfigUpd
 import org.apache.hadoop.security.UserGroupInformation;
 import org.apache.ranger.authorization.utils.StringUtil;
 
-public abstract class RangerHiveAuthorizerBase extends AbstractHiveAuthorizer {
+public abstract class RangerHiveAuthorizerBase implements HiveAuthorizer {
 
 	private static final Log LOG = LogFactory.getLog(RangerHiveAuthorizerBase.class);
 
@@ -217,6 +217,10 @@ public abstract class RangerHiveAuthorizerBase extends AbstractHiveAuthorizer {
 		throwNotImplementedException("setCurrentRole");
 	}
 
+	public Object getHiveAuthorizationTranslator() throws HiveAuthzPluginException {
+		return null;
+	}
+
 	private void throwNotImplementedException(String method) throws HiveAuthzPluginException {
 		throw new HiveAuthzPluginException(method + "() not implemented in Ranger HiveAuthorizer");
 	}