我在hive仓库中有个表,已经使用HQL跑出来结果,存到了hive中。表的schema如下
show create table test_xiaoxiannv.dw_clickadvert_daily;
CREATE EXTERNAL TABLE test_xiaoxiannv.dw_clickadvert_daily(
id int,
ip string,
time string,
action string,
dm string,
pnum int,
a0 string,
a1 string,
a2 string,
a3 string,
a4 string,
a5 string,
a6 string,
a7 string,
a8 string,
a9 string,
a10 string,
a11

本文介绍了如何将Hive仓库中的查询结果导出到本地CSV文件。通过执行HQL并重定向输出,可以方便地将数据保存到指定路径。最后,使用sz命令在xshell中下载到本地系统。
最低0.47元/天 解锁文章
2317

被折叠的 条评论
为什么被折叠?



