final HiveMetastoreClientConfig metastoreConfig = new HiveMetastoreClientConfig()
.setMaxRetries(10)
.setRetrySleep(new Duration(3, TimeUnit.SECONDS))
.setRetryTimeout(new Duration(45, TimeUnit.SECONDS));
try (final ThriftClientManager clientManager = new ThriftClientManager()) {
final ThriftClientConfig clientConfig = new ThriftClientConfig();
final HiveMetastoreFactory factory = new SimpleHiveMetastoreFactory(clientManager, clientConfig, metastoreConfig);
try (final HiveMetastore metastore = factory.getClientForHost(builder.build())) {
assertFalse(metastore.isConnected());