[报错]hive No files matching path file:

1、报错

[42000][40000] Error while compiling statement: FAILED: SemanticException Line 1:23 Invalid path '"/data/yzw/formal_data/_181_YEARBOOKTABLEDATA2008_FORMAL_REPORTGROUPER_2022_E"': No files matching path file:/data/yzw/formal_data/_181_YEARBOOKTABLEDATA2008_FORMAL_REPORTGROUPER_2022_E

语句

load data local inpath "/data/yzw/formal_data/_181_YEARBOOKTABLEDATA2008_FORMAL_REPORTGROUPER_2022_E" overwrite into table tmp.tmp_181_YEARBOOKTABLEDATA2008_FORMAL_REPORTGROUPER_2022_E;

2、原因

Hive不能加载以_为开头的文件名

3、处理

load data local inpath "/data/yzw/formal_data/181_YEARBOOKTABLEDATA2008_FORMAL_REPORTGROUPER_2022_E" overwrite into table tmp.tmp_181_YEARBOOKTABLEDATA2008_FORMAL_REPORTGROUPER_2022_E;

你可能感兴趣的:(hive,报错,hive)