Search in sources :

Example 6 with HoodieTestSuiteJob

use of org.apache.hudi.integ.testsuite.HoodieTestSuiteJob in project hudi by apache.

the class TestHoodieTestSuiteJob method testMORFullDagFromYaml.

@Test
public void testMORFullDagFromYaml() throws Exception {
    boolean useDeltaStreamer = false;
    this.cleanDFSDirs();
    String inputBasePath = dfsBasePath + "/input";
    String outputBasePath = dfsBasePath + "/result";
    HoodieTestSuiteConfig cfg = makeConfig(inputBasePath, outputBasePath, useDeltaStreamer, HoodieTableType.MERGE_ON_READ.name());
    cfg.workloadYamlPath = dfsBasePath + "/" + MOR_DAG_FILE_NAME;
    HoodieTestSuiteJob hoodieTestSuiteJob = new HoodieTestSuiteJob(cfg, jsc);
    hoodieTestSuiteJob.runTestSuite();
    HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder().setConf(new Configuration()).setBasePath(cfg.targetBasePath).build();
// assertEquals(metaClient.getActiveTimeline().getCommitsTimeline().getInstants().count(), 7);
}
Also used : HoodieTableMetaClient(org.apache.hudi.common.table.HoodieTableMetaClient) Configuration(org.apache.hadoop.conf.Configuration) HoodieTestSuiteJob(org.apache.hudi.integ.testsuite.HoodieTestSuiteJob) HoodieTestSuiteConfig(org.apache.hudi.integ.testsuite.HoodieTestSuiteJob.HoodieTestSuiteConfig) Test(org.junit.jupiter.api.Test)

Aggregations

HoodieTestSuiteJob (org.apache.hudi.integ.testsuite.HoodieTestSuiteJob)6 HoodieTestSuiteConfig (org.apache.hudi.integ.testsuite.HoodieTestSuiteJob.HoodieTestSuiteConfig)6 Configuration (org.apache.hadoop.conf.Configuration)5 HoodieTableMetaClient (org.apache.hudi.common.table.HoodieTableMetaClient)5 Test (org.junit.jupiter.api.Test)5 TypedProperties (org.apache.hudi.common.config.TypedProperties)1 ComplexDagGenerator (org.apache.hudi.integ.testsuite.dag.ComplexDagGenerator)1 HiveSyncDagGenerator (org.apache.hudi.integ.testsuite.dag.HiveSyncDagGenerator)1 HiveSyncDagGeneratorMOR (org.apache.hudi.integ.testsuite.dag.HiveSyncDagGeneratorMOR)1 MethodSource (org.junit.jupiter.params.provider.MethodSource)1