Configuration Options¶
Connector¶
format.classThe format class to use when writing data to the store.
- Type: class
- Importance: high
flush.sizeNumber of records written to store before invoking file commits.
- Type: int
- Importance: high
rotate.interval.msThe time interval in milliseconds to invoke file commits. This configuration ensures that file commits are invoked every configured interval. This configuration is useful when data ingestion rate is low and the connector didn’t write enough messages to commit files. The default value -1 means that this feature is disabled.
- Type: long
- Default: -1
- Importance: high
rotate.schedule.interval.msThe time interval in milliseconds to periodically invoke file commits. This configuration ensures that file commits are invoked every configured interval. Time of commit will be adjusted to 00:00 of selected timezone. Commit will be performed at scheduled time regardless previous commit time or number of messages. This configuration is useful when you have to commit your data based on current server time, like at the beginning of every hour. The default value -1 means that this feature is disabled.
- Type: long
- Default: -1
- Importance: medium
schema.cache.sizeThe size of the schema cache used in the Avro converter.
- Type: int
- Default: 1000
- Importance: low
retry.backoff.msThe retry backoff in milliseconds. This config is used to notify Kafka connect to retry delivering a message batch or performing recovery in case of transient exceptions.
- Type: long
- Default: 5000
- Importance: low
filename.offset.zero.pad.widthWidth to zero pad offsets in store’s filenames if offsets are too short in order to provide fixed width filenames that can be ordered by simple lexicographic sorting.
- Type: int
- Default: 10
- Valid Values: [0,...]
- Importance: low
S3¶
s3.bucket.nameThe S3 Bucket.
- Type: string
- Importance: high
s3.regionThe AWS region to be used the connector.
- Type: string
- Default: us-west-2
- Valid Values: [us-gov-west-1, ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-west-1, eu-west-2, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2, cn-north-1]
- Importance: medium
s3.part.sizeThe Part Size in S3 Multi-part Uploads.
- Type: int
- Default: 26214400
- Valid Values: [5242880,...,2147483647]
- Importance: high
s3.credentials.provider.classCredentials provider or provider chain to use for authentication to AWS. By default the connector uses ‘DefaultAWSCredentialsProviderChain’.
- Type: class
- Default: com.amazonaws.auth.DefaultAWSCredentialsProviderChain
- Valid Values: Any class implementing: interface com.amazonaws.auth.AWSCredentialsProvider
- Importance: low
s3.ssea.nameThe S3 Server Side Encryption Algorithm.
- Type: string
- Default: “”
- Importance: low
s3.acl.cannedAn S3 canned ACL header value to apply when writing objects.
- Type: string
- Default: null
- Valid Values: [private, public-read, public-read-write, authenticated-read, log-delivery-write, bucket-owner-read, bucket-owner-full-control, aws-exec-read]
- Importance: low
s3.wan.modeUse S3 accelerated endpoint.
- Type: boolean
- Default: false
- Importance: medium
avro.codecThe Avro compression codec to be used for output files. Available values: null, deflate, snappy and bzip2 (codec source is org.apache.avro.file.CodecFactory)
- Type: string
- Default: null
- Importance: low
s3.part.retriesNumber of upload retries of a single S3 part. Zero means no retries.
- Type: int
- Default: 3
- Importance: medium
format.bytearray.extensionOutput file extension for ByteArrayFormat. Defaults to ‘.bin’
- Type: string
- Default: .bin
- Importance: low
format.bytearray.separatorString inserted between records for ByteArrayFormat. Defaults to ‘System.lineSeparator()’ and may contain escape sequences like ‘n’. An input record that contains the line separator will look like multiple records in the output S3 object.
- Type: string
- Default: null
- Importance: low
s3.proxy.urlS3 Proxy settings encoded in URL syntax. This property is meant to be used only if you need to access S3 through a proxy.
- Type: string
- Default: “”
- Importance: low
s3.proxy.userS3 Proxy User. This property is meant to be used only if you need to access S3 through a proxy. Using
s3.proxy.userinstead of embedding the username and password ins3.proxy.urlallows the password to be hidden in the logs.- Type: string
- Default: null
- Importance: low
s3.proxy.passwordS3 Proxy Password. This property is meant to be used only if you need to access S3 through a proxy. Using
s3.proxy.passwordinstead of embedding the username and password ins3.proxy.urlallows the password to be hidden in the logs.- Type: password
- Default: [hidden]
- Importance: low
Storage¶
storage.classThe underlying storage layer.
- Type: class
- Importance: high
topics.dirTop level directory to store the data ingested from Kafka.
- Type: string
- Default: topics
- Importance: high
store.urlStore’s connection URL, if applicable.
- Type: string
- Default: null
- Importance: high
directory.delimDirectory delimiter pattern
- Type: string
- Default: /
- Importance: medium
file.delimFile delimiter pattern
- Type: string
- Default: +
- Importance: medium
Partitioner¶
partitioner.classThe partitioner to use when writing data to the store. You can use
DefaultPartitioner, which preserves the Kafka partitions;FieldPartitioner, which partitions the data to different directories according to the value of the partitioning field specified inpartition.field.name;TimeBasedPartitioner, which partitions data according to ingestion time.- Type: class
- Default: io.confluent.connect.storage.partitioner.DefaultPartitioner
- Importance: high
- Dependents:
partition.field.name,partition.duration.ms,path.format,locale,timezone
partition.field.nameThe name of the partitioning field when FieldPartitioner is used.
- Type: string
- Default: “”
- Importance: medium
partition.duration.msThe duration of a partition milliseconds used by
TimeBasedPartitioner. The default value -1 means that we are not usingTimeBasedPartitioner.- Type: long
- Default: -1
- Importance: medium
path.formatThis configuration is used to set the format of the data directories when partitioning with
TimeBasedPartitioner. The format set in this configuration converts the Unix timestamp to proper directories strings. For example, if you setpath.format='year'=YYYY/'month'=MM/'day'=dd/'hour'=HH, the data directories will have the format/year=2015/month=12/day=07/hour=15/.- Type: string
- Default: “”
- Importance: medium
localeThe locale to use when partitioning with
TimeBasedPartitioner.- Type: string
- Default: “”
- Importance: medium
timezoneThe timezone to use when partitioning with
TimeBasedPartitioner.- Type: string
- Default: “”
- Importance: medium
timestamp.extractorThe extractor that gets the timestamp for records when partitioning with
TimeBasedPartitioner. It can be set toWallclock,RecordorRecordFieldin order to use one of the built-in timestamp extractors or be given the fully-qualified class name of a user-defined class that extends theTimestampExtractorinterface.- Type: string
- Default: Wallclock
- Importance: medium
timestamp.fieldThe record field to be used as timestamp by the timestamp extractor.
- Type: string
- Default: timestamp
- Importance: medium