public class HiveClientPool extends ClientPool.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
Mostly copied from iceberg.
ClientPool.Action<R,C,E extends Exception>, ClientPool.ClientPoolImpl<C,E extends Exception>, ClientPool.ExecuteAction<C,E extends Exception>| Constructor and Description |
|---|
HiveClientPool(int poolSize,
org.apache.hadoop.conf.Configuration conf,
String clientClassName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close(org.apache.hadoop.hive.metastore.IMetaStoreClient client) |
protected boolean |
isConnectionException(Exception e) |
protected org.apache.hadoop.hive.metastore.IMetaStoreClient |
newClient() |
protected org.apache.hadoop.hive.metastore.IMetaStoreClient |
reconnect(org.apache.hadoop.hive.metastore.IMetaStoreClient client) |
public HiveClientPool(int poolSize,
org.apache.hadoop.conf.Configuration conf,
String clientClassName)
protected org.apache.hadoop.hive.metastore.IMetaStoreClient newClient()
newClient in class ClientPool.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>protected org.apache.hadoop.hive.metastore.IMetaStoreClient reconnect(org.apache.hadoop.hive.metastore.IMetaStoreClient client)
reconnect in class ClientPool.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>protected boolean isConnectionException(Exception e)
isConnectionException in class ClientPool.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>protected void close(org.apache.hadoop.hive.metastore.IMetaStoreClient client)
close in class ClientPool.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.