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

    Nested classes/interfaces inherited from interface org.apache.iceberg.ClientPool

    org.apache.iceberg.ClientPool.Action<R extends Object,C extends Object,E extends Exception>
  • Constructor Summary

    Constructors
    Constructor
    Description
    HiveClientPool(int poolSize, org.apache.hadoop.conf.Configuration conf)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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)
     

    Methods inherited from class org.apache.iceberg.ClientPoolImpl

    close, isClosed, poolSize, run, run

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.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:
      reconnect in class org.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>
    • isConnectionException

      protected boolean isConnectionException(Exception e)
      Overrides:
      isConnectionException in class org.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:
      close in class org.apache.iceberg.ClientPoolImpl<org.apache.hadoop.hive.metastore.IMetaStoreClient,org.apache.thrift.TException>