@InterfaceAudience.Private public class SQLStdConfOnlyAuthorizerFactory extends Object implements HiveAuthorizerFactory
| Constructor and Description |
|---|
SQLStdConfOnlyAuthorizerFactory() |
| Modifier and Type | Method and Description |
|---|---|
HiveAuthorizer |
createHiveAuthorizer(HiveMetastoreClientFactory metastoreClientFactory,
HiveConf conf,
HiveAuthenticationProvider authenticator,
HiveAuthzSessionContext ctx)
Create a new instance of HiveAuthorizer, initialized with the given objects.
|
public HiveAuthorizer createHiveAuthorizer(HiveMetastoreClientFactory metastoreClientFactory, HiveConf conf, HiveAuthenticationProvider authenticator, HiveAuthzSessionContext ctx) throws HiveAuthzPluginException
HiveAuthorizerFactorycreateHiveAuthorizer in interface HiveAuthorizerFactorymetastoreClientFactory - - Use this to get the valid meta store client (IMetaStoreClient)
for the current thread. Each invocation of method in HiveAuthorizer can happen in
different thread, so get the current instance in each method invocation.conf - - current HiveConfauthenticator - - authenticator, provides user namectx - - session context informationHiveAuthzPluginExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.