개요
다음 구성 설정을 사용하여 MongoDB Kafka 소스 커넥터가 데이터를 게시할 Kafka 주제를 지정합니다.
카테고리별로 정리된 소스 connector 구성 설정 목록은 소스 Connector 구성 속성가이드 를 참조하세요.
설정
| 이름 | 설명 | ||||
|---|---|---|---|---|---|
| topic.prefix | Type: string Description: Specifies the first part of the destination Kafka
topic name to which the connector publishes change stream events.
The destination topic name is composed of the  topic.prefixvalue followed by the database and collection names, separated by the value
specified in thetopic.separatorproperty.To learn more, see the example in Topic Naming Prefix. Default:  ""Accepted Values: A string composed of ASCII alphanumeric
characters including ".", "-", and "_" | ||||
| topic.suffix | Type: string Description: Specifies the last part of the destination Kafka
topic name to which the connector publishes change stream events.
The destination topic name is composed of the database and
collection names followed by the  topic.suffixvalue,
separated by the value specified in thetopic.separatorproperty.To learn more, see the example in Topic Naming Suffix. Default:  ""Accepted Values: A string composed of ASCII alphanumeric
characters including ".", "-", and "_" | ||||
| topic.namespace.map | Type: string Description: Specifies a JSON mapping between change stream document
namespaces
and topic names. You can use to  topic.namespace.mapproperty to
specify complex mappings. This property supports regex
and wildcard matching.To learn more about these behaviors and
view examples, see Topic Namespace Map. Default:  ""Accepted Values: A valid JSON object | ||||
| topic.separator | Type: string Description: Specifies the string the connector uses to concatenate the values used
to create the name of your topic. The connector publishes records to a
topic with a name formed by concatenating the values of the following fields
in the following order: 
 For example, the following configuration instructs the connector to publish
change stream documents from the  collcollection of thedbdatabase to theprefix-db-colltopic:IMPORTANT: When you use the  topic.separatorproperty, note that it
doesn't affect how you define thetopic.namespace.mapproperty.
Thetopic.namespace.mapproperty uses MongoDB
namespaces
which you must always specify with a.character to separate
the database and collection name.Default:  "."Accepted Values: A string | ||||
| topic.mapper | Type: string Description: The Java class that defines your custom topic mapping logic. Default:  com.mongodb.kafka.connect.source.topic.mapping.DefaultTopicMapperAccepted Values: Valid full class name of an implementation
of the TopicMapper
class. |