"hive-metastore.port", port,
"hive-metastore.max-retries", "0");
final Injector inj = new Bootstrap(new HiveMetastoreClientModule(),
new ThriftClientModule(),
new ThriftCodecModule())
.setRequiredConfigurationProperties(properties)
.strictConfig()
.initialize();
inj.injectMembers(this);
try (HiveMetastore metastore = metastoreProvider.get()) {
assertFalse(metastore.isConnected());
}
final Map<String, String> serverProps = ImmutableMap.of("thrift.port", port);
new Bootstrap(new DummyHiveMetastoreServerModule(),
new HiveMetastoreClientModule(),
new ThriftClientModule(),
new ThriftCodecModule())
.setRequiredConfigurationProperties(serverProps)
.strictConfig()
.initialize();
try (HiveMetastore metastore = metastoreProvider.get()) {