Commit 16469151 164691514f5db35e2b18af34e87089f83eb1b277 by 张浩

commit

1 parent da9593dc
use testdb;
INSERT OVERWRITE TABLE biz_data_count
INSERT INTO TABLE biz_data_count
select method,biz_data,count(1) as count,max(timestamp) as timestamp
from qa_log
where method is not null and method!='N/A' and method='${hivevar:mytemp}'
......
use testdb;
INSERT OVERWRITE TABLE biz_data_response
INSERT INTO TABLE biz_data_response
select method,biz_data,uid,timestamp,response
from qa_log
where method is not null and method!='N/A' and method='${hivevar:mytemp}';
\ No newline at end of file
......
use testdb;
truncate table biz_data_count;
truncate table biz_data_response;
LOAD DATA INPATH 'hdfs://localhost:8020/input/etl' OVERWRITE INTO TABLE qa_log;
\ No newline at end of file
......