use of io.prestosql.plugin.hive.metastore.thrift.MockThriftMetastoreClient in project hetu-core by openlookeng.
the class TestCachingHiveMetastore method setUp.
@BeforeMethod
public void setUp() {
mockClient = new MockThriftMetastoreClient();
MetastoreLocator metastoreLocator = new MockMetastoreLocator(mockClient);
ListeningExecutorService executor = listeningDecorator(newCachedThreadPool(daemonThreadsNamed("test-%s")));
ListeningExecutorService executorRefresh = listeningDecorator(newCachedThreadPool(daemonThreadsNamed("test-%s")));
ThriftHiveMetastore thriftHiveMetastore = new ThriftHiveMetastore(metastoreLocator, new ThriftHiveMetastoreConfig());
metastore = new CachingHiveMetastore(new BridgingHiveMetastore(thriftHiveMetastore), executor, executorRefresh, new Duration(6, TimeUnit.MINUTES), new Duration(6, TimeUnit.MINUTES), new Duration(5, TimeUnit.MINUTES), new Duration(1, TimeUnit.MINUTES), 1000, false);
stats = thriftHiveMetastore.getStats();
}
use of io.prestosql.plugin.hive.metastore.thrift.MockThriftMetastoreClient in project hetu-core by openlookeng.
the class TestSemiTransactionalHiveMetastore method setUp.
@BeforeMethod
public void setUp() {
mockClient = new MockThriftMetastoreClient();
MetastoreLocator metastoreLocator = new MockMetastoreLocator(mockClient);
thriftHiveMetastore = new ThriftHiveMetastore(metastoreLocator, new ThriftHiveMetastoreConfig());
stats = thriftHiveMetastore.getStats();
}
use of io.prestosql.plugin.hive.metastore.thrift.MockThriftMetastoreClient in project boostkit-bigdata by kunpengcompute.
the class TestHiveWriterFactory method setUp.
private void setUp() {
mockClient = new MockThriftMetastoreClient();
executor = newCachedThreadPool(daemonThreadsNamed("hive-%s"));
executorRefresh = newCachedThreadPool(daemonThreadsNamed("hive-refresh-%s"));
MetastoreLocator metastoreLocator = new MockMetastoreLocator(mockClient);
metastore = new CachingHiveMetastore(new BridgingHiveMetastore(new ThriftHiveMetastore(metastoreLocator, new ThriftHiveMetastoreConfig())), executor, executorRefresh, Duration.valueOf("1m"), Duration.valueOf("15s"), Duration.valueOf("1m"), Duration.valueOf("15s"), 10000, false);
}
use of io.prestosql.plugin.hive.metastore.thrift.MockThriftMetastoreClient in project boostkit-bigdata by kunpengcompute.
the class TestSemiTransactionalHiveMetastore method setUp.
@BeforeMethod
public void setUp() {
mockClient = new MockThriftMetastoreClient();
MetastoreLocator metastoreLocator = new MockMetastoreLocator(mockClient);
thriftHiveMetastore = new ThriftHiveMetastore(metastoreLocator, new ThriftHiveMetastoreConfig());
stats = thriftHiveMetastore.getStats();
}
use of io.prestosql.plugin.hive.metastore.thrift.MockThriftMetastoreClient in project hetu-core by openlookeng.
the class TestHiveWriterFactory method setUp.
private void setUp() {
mockClient = new MockThriftMetastoreClient();
executor = newCachedThreadPool(daemonThreadsNamed("hive-%s"));
executorRefresh = newCachedThreadPool(daemonThreadsNamed("hive-refresh-%s"));
MetastoreLocator metastoreLocator = new MockMetastoreLocator(mockClient);
metastore = new CachingHiveMetastore(new BridgingHiveMetastore(new ThriftHiveMetastore(metastoreLocator, new ThriftHiveMetastoreConfig())), executor, executorRefresh, Duration.valueOf("1m"), Duration.valueOf("15s"), Duration.valueOf("1m"), Duration.valueOf("15s"), 10000, false);
}
Aggregations