Search in sources :

Example 1 with AvroFormat

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

the class DataWriterAvroTest method setUp.

// @Before should be omitted in order to be able to add properties per test.
public void setUp() throws Exception {
    super.setUp();
    s3 = PowerMockito.spy(newS3Client(connectorConfig));
    storage = new S3Storage(connectorConfig, url, S3_TEST_BUCKET_NAME, s3);
    partitioner = new DefaultPartitioner<>();
    partitioner.configure(parsedConfig);
    format = new AvroFormat(storage);
    s3.createBucket(S3_TEST_BUCKET_NAME);
    assertTrue(s3.doesBucketExist(S3_TEST_BUCKET_NAME));
}
Also used : AvroFormat(io.confluent.connect.s3.format.avro.AvroFormat) S3Storage(io.confluent.connect.s3.storage.S3Storage)

Example 2 with AvroFormat

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

the class TopicPartitionWriterTest method setUp.

public void setUp() throws Exception {
    super.setUp();
    s3 = newS3Client(connectorConfig);
    storage = new S3Storage(connectorConfig, url, S3_TEST_BUCKET_NAME, s3);
    format = new AvroFormat(storage);
    Format<S3SinkConnectorConfig, String> format = new AvroFormat(storage);
    writerProvider = format.getRecordWriterProvider();
    extension = writerProvider.getExtension();
}
Also used : AvroFormat(io.confluent.connect.s3.format.avro.AvroFormat) S3Storage(io.confluent.connect.s3.storage.S3Storage)

Aggregations

AvroFormat (io.confluent.connect.s3.format.avro.AvroFormat)2 S3Storage (io.confluent.connect.s3.storage.S3Storage)2