@InterfaceAudience.Public @InterfaceStability.Evolving public class HiveMetaStoreClient extends Object implements IMetaStoreClient, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
close connection to meta store
|
protected org.apache.http.impl.client.HttpClientBuilder |
createHttpClientBuilder() |
String |
getDelegationToken(String owner,
String renewerKerberosPrincipalName)
This is expected to be a no-op when in local mode, which means that the implementation will
return null.
|
org.apache.kyuubi.shaded.thrift.transport.TTransport |
getTTransport() |
boolean |
isLocalMetaStore()
Returns true if the current client is using an in process metastore (local metastore).
|
void |
reconnect()
Tries to reconnect this MetaStoreClient to the MetaStore.
|
protected final org.apache.hadoop.conf.Configuration conf
protected static final org.slf4j.Logger LOG
public HiveMetaStoreClient(org.apache.hadoop.conf.Configuration conf)
throws MetaException
MetaExceptionpublic org.apache.kyuubi.shaded.thrift.transport.TTransport getTTransport()
public boolean isLocalMetaStore()
IMetaStoreClientisLocalMetaStore in interface IMetaStoreClientpublic void reconnect()
throws MetaException
IMetaStoreClientreconnect in interface IMetaStoreClientMetaExceptionprotected org.apache.http.impl.client.HttpClientBuilder createHttpClientBuilder()
throws MetaException
MetaExceptionpublic void close()
IMetaStoreClientclose in interface AutoCloseableclose in interface IMetaStoreClientpublic String getDelegationToken(String owner, String renewerKerberosPrincipalName) throws MetaException, org.apache.kyuubi.shaded.thrift.TException
IMetaStoreClientgetDelegationToken in interface IMetaStoreClientowner - the intended owner for the tokenMetaExceptionorg.apache.kyuubi.shaded.thrift.TExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.