@Override
  protected HMSClient reconnect(HMSClient client) {
    try {
      return metaStore.doAs(
          () -> {
            try {
              client.close();
              client.reconnect();
            } catch (MetaException e) {
              throw new RuntimeException("Failed to reconnect to Hive Metastore", e);
            }
            return client;
          });
    } catch (Exception e) {
      LOG.error("hive metastore client reconnected failed", e);
      throw e;
    }
  }
Extended implementation of {@link ClientPoolImpl} with {@link TableMetaStore} to support
authenticated hive cluster.
amoro-common/src/main/java/org/apache/amoro/hive/AuthenticatedHiveClientPool.java