org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd
Class SQLStdHiveAuthorizerFactory
java.lang.Object
org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory
- All Implemented Interfaces:
- HiveAuthorizerFactory
@InterfaceAudience.Private
public class SQLStdHiveAuthorizerFactory
- extends Object
- implements HiveAuthorizerFactory
SQLStdHiveAuthorizerFactory
public SQLStdHiveAuthorizerFactory()
createHiveAuthorizer
public HiveAuthorizer createHiveAuthorizer(HiveMetastoreClientFactory metastoreClientFactory,
HiveConf conf,
HiveAuthenticationProvider authenticator)
throws HiveAuthzPluginException
- Description copied from interface:
HiveAuthorizerFactory
- Create a new instance of HiveAuthorizer, initialized with the given objects.
- Specified by:
createHiveAuthorizer
in interface HiveAuthorizerFactory
- Parameters:
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 name
- Returns:
- new instance of HiveAuthorizer
- Throws:
HiveAuthzPluginException
Copyright © 2014 The Apache Software Foundation. All rights reserved.