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,org.apache.iceberg.ClientPool<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
public class HiveClientPool
extends org.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose(org.apache.hadoop.hive.metastore.IMetaStoreClient client) protected booleanprotected org.apache.hadoop.hive.metastore.IMetaStoreClientprotected org.apache.hadoop.hive.metastore.IMetaStoreClientreconnect(org.apache.hadoop.hive.metastore.IMetaStoreClient client) Methods inherited from class org.apache.iceberg.ClientPoolImpl
close, isClosed, poolSize, run, run
-
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:
newClientin classorg.apache.iceberg.ClientPoolImpl<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:
reconnectin classorg.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
-
isConnectionException
- Overrides:
isConnectionExceptionin classorg.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
-
close
protected void close(org.apache.hadoop.hive.metastore.IMetaStoreClient client) - Specified by:
closein classorg.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
-