alibaba / alibaba/DataX

mongodbwriter认证数据库的问题

Open
#1,178 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
17.4k
Forks
5.7k
PR merge metrics
No merged PRs in 30d

Description

## 参考mongodbreader 添加相关mongodbwriter认证数据库的问题

issuer 修改后做过验证,能正常导入

mongodbreader可以配置权限认证数据库使用的数据库,mongodbwriter 不行,对比下面两处,需对mongodbwriter进行修改

com.alibaba.datax.plugin.reader.mongodbreader.MongoDBReader.Job#init: 60
com.alibaba.datax.plugin.writer.mongodbwriter.MongoDBWriter.Task#writerSliceConfig: 322

Contributor guide

No contributing guide indexed for this repository

Research direction

Compare com.alibaba.datax.plugin.reader.mongodbreader.MongoDBReader.Job#init at line 60 with com.alibaba.datax.plugin.writer.mongodbwriter.MongoDBWriter.Task#writerSliceConfig at line 322. Trace how the reader accepts an authentication database, then apply the corresponding writer-side change and verify that mongodbwriter can import successfully with a separately configured authentication database.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.