Package org.apache.iceberg.hive
Class HiveClientPool
java.lang.Object
org.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
org.apache.iceberg.hive.HiveClientPool
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,
org.apache.thrift.TException>
public class HiveClientPool
extends ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.ClientPool
ClientPool.Action<R,
C, E extends Exception> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
close
(org.apache.hadoop.hive.metastore.IMetaStoreClient client) protected boolean
protected org.apache.hadoop.hive.metastore.IMetaStoreClient
protected org.apache.hadoop.hive.metastore.IMetaStoreClient
reconnect
(org.apache.hadoop.hive.metastore.IMetaStoreClient client)
-
Constructor Details
-
HiveClientPool
public HiveClientPool(int poolSize, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
newClient
protected org.apache.hadoop.hive.metastore.IMetaStoreClient newClient()- Specified by:
newClient
in classClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,
org.apache.thrift.TException>
-
reconnect
protected org.apache.hadoop.hive.metastore.IMetaStoreClient reconnect(org.apache.hadoop.hive.metastore.IMetaStoreClient client) - Specified by:
reconnect
in classClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,
org.apache.thrift.TException>
-
isConnectionException
- Overrides:
isConnectionException
in classClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,
org.apache.thrift.TException>
-
close
protected void close(org.apache.hadoop.hive.metastore.IMetaStoreClient client) - Specified by:
close
in classClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,
org.apache.thrift.TException>
-