hiveClientConfig.setMetastoreSocksProxy(HostAndPort.fromString(proxy));
}
// Restrict the outstanding splits to 1 and only use 2 threads per iterator
HiveCluster hiveCluster = new TestingHiveCluster(hiveClientConfig, host, port);
ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newCachedThreadPool(new ThreadFactoryBuilder().setDaemon(true).build()));
HiveClient client = new HiveClient(
new HiveConnectorId(CONNECTOR_ID),
new CachingHiveMetastore(hiveCluster, executor, Duration.valueOf("1m"), Duration.valueOf("30s")),
new HdfsEnvironment(new HdfsConfiguration(hiveClientConfig), FileSystemWrapper.identity()),
MoreExecutors.sameThreadExecutor(),