Search in sources :

Example 6 with FilebasedSchemaProvider

use of org.apache.hudi.utilities.schema.FilebasedSchemaProvider in project hudi by apache.

the class TestCsvDFSSource method setup.

@BeforeEach
public void setup() throws Exception {
    super.setup();
    this.dfsRoot = dfsBasePath + "/jsonFiles";
    this.fileSuffix = ".json";
    this.useFlattenedSchema = true;
    this.schemaProvider = new FilebasedSchemaProvider(Helpers.setupSchemaOnDFS("delta-streamer-config", "source-flattened.avsc"), jsc);
}
Also used : FilebasedSchemaProvider(org.apache.hudi.utilities.schema.FilebasedSchemaProvider) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 7 with FilebasedSchemaProvider

use of org.apache.hudi.utilities.schema.FilebasedSchemaProvider in project hudi by apache.

the class TestFileDeltaInputWriter method setup.

@BeforeEach
public void setup() throws Exception {
    super.setup();
    schemaProvider = new FilebasedSchemaProvider(Helpers.setupSchemaOnDFSWithAbsoluteScope(System.getProperty("user.dir") + "/.." + COMPLEX_SOURCE_SCHEMA_DOCKER_DEMO_RELATIVE_PATH, "complex-source.avsc"), jsc);
}
Also used : FilebasedSchemaProvider(org.apache.hudi.utilities.schema.FilebasedSchemaProvider) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

FilebasedSchemaProvider (org.apache.hudi.utilities.schema.FilebasedSchemaProvider)7 BeforeEach (org.junit.jupiter.api.BeforeEach)7 TypedProperties (org.apache.hudi.common.config.TypedProperties)2 Path (org.apache.hadoop.fs.Path)1