Search in sources :

Example 6 with S3Storage

use of io.confluent.connect.s3.storage.S3Storage 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

S3Storage (io.confluent.connect.s3.storage.S3Storage)6 AvroFormat (io.confluent.connect.s3.format.avro.AvroFormat)2 AmazonClientException (com.amazonaws.AmazonClientException)1 ByteArrayFormat (io.confluent.connect.s3.format.bytearray.ByteArrayFormat)1 JsonFormat (io.confluent.connect.s3.format.json.JsonFormat)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 ByteArrayConverter (org.apache.kafka.connect.converters.ByteArrayConverter)1 ConnectException (org.apache.kafka.connect.errors.ConnectException)1 DataException (org.apache.kafka.connect.errors.DataException)1 JsonConverter (org.apache.kafka.connect.json.JsonConverter)1 Before (org.junit.Before)1