This is an automated email from the ASF dual-hosted git repository.
pradeep pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push:
new 18d0f1a RANGER-2397: HiveServer2 fails to start with Hive Plugin for
Ranger
18d0f1a is described below
commit 18d0f1ab8903968f7ed6005b1608ab2e375ce228
Author: Pradeep <[email protected]>
AuthorDate: Thu May 30 10:02:16 2019 +0530
RANGER-2397: HiveServer2 fails to start with Hive Plugin for Ranger
---
.../hive/authorizer/RangerHiveAuthorizerBase.java | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
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 afc57b2..a21d462 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
@@ -26,9 +26,9 @@ import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.hive.conf.HiveConf;
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.AbstractHiveAuthorizer;
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.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;
@@ -42,7 +42,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 implements HiveAuthorizer {
+public abstract class RangerHiveAuthorizerBase extends AbstractHiveAuthorizer {
private static final Log LOG =
LogFactory.getLog(RangerHiveAuthorizerBase.class);
@@ -218,12 +218,8 @@ public abstract class RangerHiveAuthorizerBase implements
HiveAuthorizer {
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");
+ throw new HiveAuthzPluginException(method + "() not implemented
in Ranger AbstractHiveAuthorizer");
}
@Override