DataX 【mongoReader】When I read mongodb data, Fields with null values were discarded, resulting in inconsistent field order

8fsztsew  于 5个月前  发布在  Go
关注(0)|答案(7)|浏览(112)

When I read mongodb data, Fields with null values were discarded, resulting in inconsistent field order

here is the mongo data

the follow is the json file:

You can see the index 4【PackageCode】is null。 The error log does not report this field

6ojccjat

6ojccjat1#

谢谢你,不过我看文件好像是KuduReader,不是MongoReader。请问是否发错了呢 | | 郑杰文 | | @***. | 签名由网易邮箱大师定制 On 9/18/2021 ***@***.***> wrote: 链接: https://pan.baidu.com/s/1uoHeSk42F3wwTaFrtqH-FA 提取码:nnoq 可以使用我打包的, — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

nsc4cvqm

nsc4cvqm2#

谢谢!我看看 | | 郑杰文 | | @***. | 签名由网易邮箱大师定制 On 9/18/2021 @***.***> wrote: 谢谢你,不过我看文件好像是KuduReader,不是MongoReader。请问是否发错了呢 | | 郑杰文 | | @. | 签名由网易邮箱大师定制 On 9/18/2021 @.***> wrote: 链接: https://pan.baidu.com/s/1uoHeSk42F3wwTaFrtqH-FA 提取码:nnoq 可以使用我打包的, — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. 链接: https://pan.baidu.com/s/16t2SDevyRzmGoleuI6kJvQ 提取码:5x5d 刚才发发错了,现在是正确的,尴尬了 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

o75abkj4

o75abkj43#

收到,我先单独替换这个mongodbreader 的试试。感谢 | | 郑杰文 | | @***. | 签名由网易邮箱大师定制 On 9/18/2021 ***@***.***> wrote: 如果有问题,下载我的全量包, 链接: https://pan.baidu.com/s/1g0s41jslF2e4bu9siZBDHw 提取码:6j9r — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

yrdbyhpb

yrdbyhpb4#

你好,我替换之后,出现了这个方法找不到的问题: 经DataX智能分析,该任务最可能的错误原因是: com.alibaba.datax.common.exception.DataXException: Code:[Framework-02], Description:[DataX引擎运行过程出错,具体原因请参看DataX运行结束时的错误诊断信息 .]. - java.lang.NoSuchMethodError: com.google.common.base.Platform.stringIsNullOrEmpty(Ljava/lang/String;)Z 请问是否需要全部替换呢 | | 郑杰文 | | @***. | 签名由网易邮箱大师定制 On 9/18/2021 ***@***.***> wrote: 如果有问题,下载我的全量包, 链接: https://pan.baidu.com/s/1g0s41jslF2e4bu9siZBDHw 提取码:6j9r — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

kknvjkwl

kknvjkwl5#

这是报错信息: java.lang.NoSuchMethodError: com.google.common.base.Platform.stringIsNullOrEmpty(Ljava/lang/String;)Z at com.google.common.base.Strings.isNullOrEmpty(Strings.java:68) ~[guava-29.0-jre.jar:na] at com.alibaba.datax.plugin.reader.mongodbreader.MongoDBReader$Job.init(MongoDBReader.java:72) ~[mongodbreader-0.0.1-SNAPSHOT.jar:na] at com.alibaba.datax.core.job.JobContainer.initJobReader(JobContainer.java:673) ~[datax-core-0.0.1-SNAPSHOT.jar:na] at com.alibaba.datax.core.job.JobContainer.init(JobContainer.java:303) ~[datax-core-0.0.1-SNAPSHOT.jar:na] at com.alibaba.datax.core.job.JobContainer.start(JobContainer.java:113) ~[datax-core-0.0.1-SNAPSHOT.jar:na] at com.alibaba.datax.core.Engine.start(Engine.java:92) [datax-core-0.0.1-SNAPSHOT.jar:na] at com.alibaba.datax.core.Engine.entry(Engine.java:171) [datax-core-0.0.1-SNAPSHOT.jar:na] at com.alibaba.datax.core.Engine.main(Engine.java:204) [datax-core-0.0.1-SNAPSHOT.jar:na] | | 郑杰文 | | @***. | 签名由网易邮箱大师定制 On 9/18/2021 ***@***.***> wrote: 如果有问题,下载我的全量包, 链接: https://pan.baidu.com/s/1g0s41jslF2e4bu9siZBDHw 提取码:6j9r — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

bvjxkvbb

bvjxkvbb6#

链接: https://pan.baidu.com/s/151vHKZLS6I8PVXyb_Shp6Q
提取码:38zn,这是mongoreader的包

链接: https://pan.baidu.com/s/1yDMnuXnn0Y7qH6cGf4M_xA
提取码:ssup,这是dataX全量包,

之前出现的问题已解决,是包冲突问题
你直接使用,有问题反馈

azpvetkf

azpvetkf7#

非常感谢,这次可以了。单独替换的mongoreader插件。 | | 郑杰文 | | @***. | 签名由网易邮箱大师定制 On 9/22/2021 ***@***.***> wrote: 链接: https://pan.baidu.com/s/151vHKZLS6I8PVXyb_Shp6Q 提取码:38zn,这是mongoreader的包 链接: https://pan.baidu.com/s/1yDMnuXnn0Y7qH6cGf4M_xA 提取码:ssup,这是dataX全量包, 之前出现的问题已解决,是包冲突问题 你直接使用,有问题反馈 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

相关问题