[英]MongoDB Kafka Source Connector - copy.exisintg.pipeline config
I'm running a MongoDB Kafka source connector (official mongodb connector version 1.7.0), and defining both pipeline
and copy.existing.pipeline
properties in order to filter some columns- see below full source connector config.我正在运行 MongoDB Kafka 源连接器(官方 mongodb 连接器版本 1.7.0),并定义
pipeline
和copy.existing.pipeline
属性以过滤某些列 - 请参阅下面的完整源连接器配置。
The problem I'm having is that the copy.existing.pipeline
seems to work and filter the columns during the copy.existing
phase, but when the connector finishing and moves to the stream phase it seems like the pipeline
property is ignored and I'm getting the documents without any filtering.我遇到的问题是
copy.existing.pipeline
似乎在copy.existing
阶段工作并过滤列,但是当连接器完成并移动到 stream 阶段时, pipeline
属性似乎被忽略了,我'我在没有任何过滤的情况下获取文档。
{
"name": "connector1",
"config": {
"name": "connector1",
"connector.class": "com.mongodb.kafka.connect.MongoSourceConnector",
"connection.uri": "mongodb://mongo:27017/admin?tls=true&tlsallowinvalidcertificates=true&tlsallowinvalidhostnames=true",
"database": "myDB",
"collection": "myCollection",
"change.stream.full.document": "updateLookup",
"poll.max.batch.size": 5000,
"topic.prefix": "topic",
"copy.existing": true,
"copy.existing.allow.disk.use": true,
"copy.existing.max.threads": 10,
"output.format.value": "schema",
"pipeline": "[{$project: {\"aql\": 0, \"wizard_expressions\": 0}}]",
"copy.existing.pipeline": "[{$project: {\"aql\": 0, \"wizard_expressions\": 0}}]"
}
Any advice here?这里有什么建议吗?
It seems like I had to filter the columns prefixed by fullDocument
.好像我不得不过滤前缀为
fullDocument
的列。
"pipeline": "[{$project: {" fullDocument .aql": 0, " fullDocument .wizard_expressions": 0}}]",
“管道”:“[{$项目:{“ fullDocument .aql”:0,“ fullDocument .wizard_expressions”:0}}]”,
"copy.existing.pipeline": "[{$project: {" fullDocument .aql": 0, " fullDocument .wizard_expressions": 0}}]"
"copy.existing.pipeline": "[{$project: {" fullDocument .aql": 0, " fullDocument .wizard_expressions": 0}}]"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.