@InterfaceAudience.Private public class SQLStdHiveAuthorizerFactory extends Object implements HiveAuthorizerFactory
Constructor and Description |
---|
SQLStdHiveAuthorizerFactory() |
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
HiveAuthorizerFactory
createHiveAuthorizer
in interface HiveAuthorizerFactory
metastoreClientFactory
- - 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 informationHiveAuthzPluginException
Copyright © 2017 The Apache Software Foundation. All rights reserved.