DataX
DataX copied to clipboard
mongodbwriter的配置了upsertInfo,但是没有对upsertKey进行更新,还是插入所有数据。
配置如下:
"upsertInfo": {
"isUpsert": "true",
"upsertKey": "unique_id"
}
发现提供的配置有点出入,使用以下配置就可以更新了,不过删除的数据不能进行删除操作。
"writeMode": {
"isReplace": "true",
"replaceKey": "unique_id"
},
您好,您知道如果mongo连接需要认证,要怎么写配置文件吗
parameter:{
"address": ["127.0.0.1:27017"],
"userName": "",
"userPassword": "",
"dbName": "tag_per_data",
"collectionName": "tag_data12"
...
}