hive查询导出到hdfs,hive,file
INSERT OVERWRITE LOCAL DIRECTORY '/script/dirk.zhang/test' ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' select... ...;
insert overwrite [local] directory '/data/movielens/100k/output/item_release_date_10' select release_date from item limit 10;
insert overwrite table data2 partition(dt='1997-12') select * from data where from_unixtime(timestamp, 'yyyy-MM') = '1997-12';
导入到hive
load data local inpath '${OUTPUT}/hive_subscribe_biz.*.${FILE_DATE}' overwrite into table subscribe_biz partition(logday='$LOG_DATE');
load data inpath '${hive_path2}/part*' overwrite into table orig_subscribe_monitor_company partition(logday='$LOG_DATE');
相关推荐
eternityzzy 2020-07-19
archive 2020-05-28
zzjmay 2020-05-17
tugangkai 2020-05-09
archive 2020-06-12
archive 2020-07-30
成长之路 2020-07-28
taisenki 2020-07-05
tugangkai 2020-07-05
SignalDu 2020-07-05
zlsdmx 2020-07-05
tomson 2020-07-05
tugangkai 2020-07-04
tomson 2020-07-05
Zhangdragonfly 2020-06-28
genshengxiao 2020-06-26