运行Hive查询并关闭计算机

时间:2019-01-11 00:48:06

标签: hive

如何设置一个Hive查询,使其即使在关闭计算机后也能继续运行?

hive -e "select session_skey, visitor_nkey, purchaseid, session_seq_num, hit_dt_1, hit_dt_ts, hit_elapsed_time,split(page_url,'/')[2], split(page_url,'/')[3], split(page_url,'/')[4],split(page_url,'cm_src=')[1],page_url from omn_prod_etl.web_fct_hit where hit_dt_1 >= '2018-11-05' and hit_dt_1 <= '2018-01-05' and page_url like '%ewd.com/products/%cm_src%' and data_source_skey= 'gobli'" | sed 's/[[:space:]]\+/^/g' > /data/archive/hit_PR4.csv

0 个答案:

没有答案