File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 2626import org .apache .hadoop .hive .conf .HiveConf ;
2727import org .apache .hadoop .hive .conf .HiveConf .ConfVars ;
2828import org .apache .hadoop .hive .ql .security .HiveAuthenticationProvider ;
29+ import org .apache .hadoop .hive .ql .security .authorization .plugin .AbstractHiveAuthorizer ;
2930import org .apache .hadoop .hive .ql .security .authorization .plugin .DisallowTransformHook ;
3031import org .apache .hadoop .hive .ql .security .authorization .plugin .HiveAccessControlException ;
31- import org .apache .hadoop .hive .ql .security .authorization .plugin .HiveAuthorizer ;
3232import org .apache .hadoop .hive .ql .security .authorization .plugin .HiveAuthzPluginException ;
3333import org .apache .hadoop .hive .ql .security .authorization .plugin .HiveAuthzSessionContext ;
3434import org .apache .hadoop .hive .ql .security .authorization .plugin .HiveAuthzSessionContext .CLIENT_TYPE ;
4242import org .apache .hadoop .security .UserGroupInformation ;
4343import org .apache .ranger .authorization .utils .StringUtil ;
4444
45- public abstract class RangerHiveAuthorizerBase implements HiveAuthorizer {
45+ public abstract class RangerHiveAuthorizerBase extends AbstractHiveAuthorizer {
4646
4747 private static final Log LOG = LogFactory .getLog (RangerHiveAuthorizerBase .class );
4848
@@ -218,12 +218,8 @@ public void setCurrentRole(String roleName)
218218 throwNotImplementedException ("setCurrentRole" );
219219 }
220220
221- public Object getHiveAuthorizationTranslator () throws HiveAuthzPluginException {
222- return null ;
223- }
224-
225221 private void throwNotImplementedException (String method ) throws HiveAuthzPluginException {
226- throw new HiveAuthzPluginException (method + "() not implemented in Ranger HiveAuthorizer " );
222+ throw new HiveAuthzPluginException (method + "() not implemented in Ranger AbstractHiveAuthorizer " );
227223 }
228224
229225 @ Override
You can’t perform that action at this time.
0 commit comments