출력 형식 속성
개요
MongoDB Kafka 소스 커넥터가 Kafka 주제에 게시하는 데이터 형식을 지정하려면 다음 구성 설정을 사용합니다.
카테고리별로 정리된 소스 connector 구성 설정 목록은 소스 Connector 구성 속성가이드 를 참조하세요.
설정
이름 | 설명 | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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. The connector supports Protobuf as an
output data format. You can enable this format by specifying the
schema value and installing and configuring the Kafka Connect Protobuf
Converter.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: Your custom JSON formatter full class name or one of the
following built-in formatter class names:
To learn more about these output formats, see JSON Formatters. | |||||||||||||||||||||||||||||||
output.schema.key | Type: string Description: Specifies an Avro schema definition for the key document of the
SourceRecord. To learn more about Avro schema, see Avro in 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. To learn more about Avro schema, see Avro in 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
output.format.value setting to schema .Default: false Accepted Values: true or false |