Output Format Properties
Overview
Use the following configuration settings to specify the format of data the source connector publishes to Kafka topics.
For a list of source connector configuration settings organized by category, see the guide on Source Connector Configuration Properties.
Settings
Name | Description | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
output.format.key | Type: string Description: Specifies which data format the source connector outputs the key
document. Default: json Accepted Values: bson , json , schema | |||||||||||||||||||||||||||||||
output.format.value | Type: string Description: Specifies which data format the source connector outputs the value
document. Default: json Accepted Values: bson , json , schema | |||||||||||||||||||||||||||||||
output.json.formatter | Type: string Description: Class name of the JSON formatter the connector should use to
output data. Default:
Accepted Values: One of the following full class names:
Or your custom JSON formatter full class name. | |||||||||||||||||||||||||||||||
output.schema.key | Type: string Description: Specifies an AVRO schema definition for the key document of the
SourceRecord. Tip See also: For more information on AVRO schema, see the Data Formats guide. Default:
Accepted Values: A valid AVRO schema | |||||||||||||||||||||||||||||||
output.schema.value | Type: string Description: Specifies an AVRO schema definition for the value document of the
SourceRecord. Tip See also: For more information on AVRO schema, see the Data Formats guide. Default:
Accepted Values: A valid JSON schema | |||||||||||||||||||||||||||||||
output.schema.infer.value | Type: boolean Description: Whether the connector should infer the schema for the value
document of the SourceRecord.
Since the connector processes each document in isolation, the
connector may generate many schemas. Important The connector only reads this setting when you set your
Default: false Accepted Values: true or false |