本文共 528 字,大约阅读时间需要 1 分钟。
select * from zc_dwa.dwa_v_m_cus_pp_imei_net where month_id='201609' and device_number = '1557832'
bin/hive -e "select * from zc_dwa.dwa_v_m_cus_pp_imei_net where month_id='201609' and device_number = '1557832'" >> /data/all_zc_pro/gxqing/res.csv
bin/hive -f stu.sql > /data/all_zc_pro/gxqing/hivef.txt
编写sql脚本:
vi stu.sql select * from zc_dwa.dwa_v_m_cus_pp_imei_net where month_id='201609' and device_number = '1557832'
转载地址:http://dwsga.baihongyu.com/