alibaba / alibaba/DataX

DataXException: Code:[HdfsReader-08], Description:[您尝试读取的文件目录为空.]

Open
#1,420 0 comments 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

there have a null table or null hdfs dir ,I modified it by pressing #689,but it continue to report errors:
com.alibaba.datax.common.exception.DataXException: Code:[HdfsReader-08], Description:[您尝试读取的文件目录为空.]. - 未能找到待读取的文件,请确认您的配置项path。
Do you have this error?
The specific error is in line 184 of hdfsreader,and the sourcefiles size() =0, an error will be reported. In the front, the judge length is added without processing, so no file is added to the List set, the List size is 0。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at HdfsReader line 184 and trace how sourcefiles is populated for a null table or HDFS directory, comparing the behavior introduced around issue #689. Reproduce the empty-source case and establish the expected behavior when sourcefiles.size() is zero. Done means the reported HdfsReader-08 failure is addressed and the behavior is verified by an appropriate regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.