Search in sources :

Example 1 with JsonFormat

use of io.confluent.connect.s3.format.json.JsonFormat in project kafka-connect-storage-cloud by confluentinc.

the class DataWriterJsonTest method setUp.

// @Before should be omitted in order to be able to add properties per test.
public void setUp() throws Exception {
    super.setUp();
    converter = new JsonConverter();
    converter.configure(Collections.singletonMap("schemas.enable", "false"), false);
    s3 = newS3Client(connectorConfig);
    storage = new S3Storage(connectorConfig, url, S3_TEST_BUCKET_NAME, s3);
    partitioner = new DefaultPartitioner<>();
    partitioner.configure(parsedConfig);
    format = new JsonFormat(storage);
    s3.createBucket(S3_TEST_BUCKET_NAME);
    assertTrue(s3.doesBucketExist(S3_TEST_BUCKET_NAME));
}
Also used : JsonFormat(io.confluent.connect.s3.format.json.JsonFormat) JsonConverter(org.apache.kafka.connect.json.JsonConverter) S3Storage(io.confluent.connect.s3.storage.S3Storage)

Aggregations

JsonFormat (io.confluent.connect.s3.format.json.JsonFormat)1 S3Storage (io.confluent.connect.s3.storage.S3Storage)1 JsonConverter (org.apache.kafka.connect.json.JsonConverter)1