org.apache.hadoop.hive.ql.security.authorization
Class DefaultHiveMetastoreAuthorizationProvider
java.lang.Object
org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProviderBase
org.apache.hadoop.hive.ql.security.authorization.BitSetCheckedAuthorizationProvider
org.apache.hadoop.hive.ql.security.authorization.DefaultHiveMetastoreAuthorizationProvider
- All Implemented Interfaces:
- HiveAuthorizationProvider, HiveMetastoreAuthorizationProvider
public class DefaultHiveMetastoreAuthorizationProvider
- extends BitSetCheckedAuthorizationProvider
- implements HiveMetastoreAuthorizationProvider
Method Summary |
void |
init(Configuration conf)
|
void |
setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
Allows invoker of HiveMetaStoreAuthorizationProvider to send in a
hive metastore handler that can be used to make calls to test
whether or not authorizations can/will succeed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultHiveMetastoreAuthorizationProvider
public DefaultHiveMetastoreAuthorizationProvider()
init
public void init(Configuration conf)
throws HiveException
- Specified by:
init
in interface HiveAuthorizationProvider
- Throws:
HiveException
setMetaStoreHandler
public void setMetaStoreHandler(HiveMetaStore.HMSHandler handler)
- Description copied from interface:
HiveMetastoreAuthorizationProvider
- Allows invoker of HiveMetaStoreAuthorizationProvider to send in a
hive metastore handler that can be used to make calls to test
whether or not authorizations can/will succeed. Intended to be called
before any of the authorize methods are called.
- Specified by:
setMetaStoreHandler
in interface HiveMetastoreAuthorizationProvider
Copyright © 2012 The Apache Software Foundation