org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd
Class SQLStdHiveAuthorizerFactory

java.lang.Object
  extended by org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory
All Implemented Interfaces:
HiveAuthorizerFactory

@InterfaceAudience.Private
public class SQLStdHiveAuthorizerFactory
extends Object
implements HiveAuthorizerFactory


Constructor Summary
SQLStdHiveAuthorizerFactory()
           
 
Method Summary
 HiveAuthorizer createHiveAuthorizer(HiveMetastoreClientFactory metastoreClientFactory, HiveConf conf, HiveAuthenticationProvider authenticator)
          Create a new instance of HiveAuthorizer, initialized with the given objects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLStdHiveAuthorizerFactory

public SQLStdHiveAuthorizerFactory()
Method Detail

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


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