【发布时间】:2020-02-01 23:59:29
【问题描述】:
我正在尝试将我在 hive 中的表的内容作为单个 csv 文件输出到 hdfs,但是当我运行下面的代码时,它会将其拆分为 5 个单独的文件,每个文件约为 500mb。在将结果输出为单个 csv 文件方面,我是否遗漏了什么?
set hive.execution.engine=tez;
set hive.merge.tezfiles=true;
INSERT OVERWRITE DIRECTORY "/dl/folder_name"
row format delimited fields terminated by ','
select * from schema.mytable;
【问题讨论】: