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

All Known Implementing Classes:
HiveMetastoreClientFactoryImpl

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

Factory for getting current valid instance of IMetaStoreClient Metastore client cannot be cached in authorization interface as that can get invalidated between the calls with the logic in Hive class. The standard way of getting metastore client object is through Hive.get().getMSC(). But Hive class is not a public interface, so this factory helps in hiding Hive class from the authorization interface users.


Method Summary
 IMetaStoreClient getHiveMetastoreClient()
           
 

Method Detail

getHiveMetastoreClient

IMetaStoreClient getHiveMetastoreClient()
                                        throws HiveAuthzPluginException
Throws:
HiveAuthzPluginException


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