DataX icon indicating copy to clipboard operation
DataX copied to clipboard

hdfsReader插件在读取hive数仓文件时遇到空白文件时报异常

Open Tu-maimes opened this issue 5 years ago • 5 comments

image

Tu-maimes avatar Dec 14 '20 11:12 Tu-maimes

可以自己写代码,加一个开关,读到空文件不报错跳过或者终止。

VincentSleepless avatar Dec 25 '20 03:12 VincentSleepless

拉一下最新的源码 https://github.com/alibaba/DataX.git 然后在本地执行编译打包,使用maven环境 执行 mvn -U clean package assembly:assembly -Dmaven.test.skip=true 在target会出现.tar.gz包 解压就可以用了 本地maven的setting.xml 最好修改为阿里的源 alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central

hhj970815 avatar Dec 29 '20 06:12 hhj970815

image

hey,Now I have this problem. How did you solve it?

Flutemr avatar Jun 24 '22 03:06 Flutemr

hey,Now I have this problem. How did you solve it?

hey,there have other error: com.alibaba.datax.common.exception.DataXException: Code:[HdfsReader-08], Description:[您尝试读取的文件目录为空.]. - 未能找到待读取的文件,请确认您的配置项path。 do you solve it?

Flutemr avatar Jun 24 '22 03:06 Flutemr

可以自己写代码,加一个开关,读到空文件不报错跳过或者终止。

加开关没用,还会继续报错读取的是空目录,请问你们会遇到这个问题吗?

Flutemr avatar Jun 24 '22 03:06 Flutemr