Search in sources :

Example 1 with JdbcHetuMetastore

use of io.hetu.core.metastore.jdbc.JdbcHetuMetastore in project hetu-core by openlookeng.

the class TestIndexRecordManager method setup.

@BeforeClass
public void setup() throws Exception {
    mysqlServer = new TestingMySqlServer("test", "mysql", "metastore1", "metastore2");
    testMetastore1 = new JdbcHetuMetastore(new JdbcMetastoreConfig().setDbUrl(mysqlServer.getJdbcUrl("metastore1")).setDbUser(mysqlServer.getUser()).setDbPassword(mysqlServer.getPassword()));
    testMetastore2 = new JdbcHetuMetastore(new JdbcMetastoreConfig().setDbUrl(mysqlServer.getJdbcUrl("metastore2")).setDbUser(mysqlServer.getUser()).setDbPassword(mysqlServer.getPassword()));
}
Also used : TestingMySqlServer(io.airlift.testing.mysql.TestingMySqlServer) JdbcHetuMetastore(io.hetu.core.metastore.jdbc.JdbcHetuMetastore) JdbcMetastoreConfig(io.hetu.core.metastore.jdbc.JdbcMetastoreConfig) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

TestingMySqlServer (io.airlift.testing.mysql.TestingMySqlServer)1 JdbcHetuMetastore (io.hetu.core.metastore.jdbc.JdbcHetuMetastore)1 JdbcMetastoreConfig (io.hetu.core.metastore.jdbc.JdbcMetastoreConfig)1 BeforeClass (org.testng.annotations.BeforeClass)1