org.apache.hadoop.hive.ql.security.authorization.plugin
Interface HiveAuthorizerFactory

All Known Implementing Classes:
SQLStdHiveAuthorizerFactory

@InterfaceAudience.LimitedPrivate(value="")
@InterfaceStability.Evolving
public interface HiveAuthorizerFactory

Implementation of this interface specified through hive configuration will be used to create HiveAuthorizer instance used for hive authorization.


Method Summary
 HiveAuthorizer createHiveAuthorizer(HiveMetastoreClientFactory metastoreClientFactory, HiveConf conf, HiveAuthenticationProvider hiveAuthenticator)
          Create a new instance of HiveAuthorizer, initialized with the given objects.
 

Method Detail

createHiveAuthorizer

HiveAuthorizer createHiveAuthorizer(HiveMetastoreClientFactory metastoreClientFactory,
                                    HiveConf conf,
                                    HiveAuthenticationProvider hiveAuthenticator)
                                    throws HiveAuthzPluginException
Create a new instance of HiveAuthorizer, initialized with the given objects.

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 HiveConf
hiveAuthenticator - - authenticator, provides user name
Returns:
new instance of HiveAuthorizer
Throws:
HiveAuthzPluginException


Copyright © 2014 The Apache Software Foundation. All rights reserved.