Commit 74091e12 74091e1214353e64dbb28827cb877de0dcb61146 by 张浩

commit

1 parent 16469151
......@@ -10,13 +10,8 @@ sleep 3
hive -f ./shell/load_data.hql
hive -f ./shell/method_count.hql
method=$(hive -f ./shell/method_select.hql)
for tmp in $method
do
hive -hivevar mytemp=$tmp -f ./shell/biz_data_count.hql
hive -hivevar mytemp=$tmp -f ./shell/biz_data_response.hql
done
hive -f ./shell/biz_data_count.hql
hive -f ./shell/biz_data_response.hql
hadoop fs -rm /input/data/$time
rm ../$time
......
use testdb;
INSERT INTO TABLE biz_data_count
INSERT OVERWRITE 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}'
where method is not null and method!='N/A'
group by method,biz_data;
\ No newline at end of file
......
use testdb;
INSERT INTO TABLE biz_data_response
INSERT OVERWRITE 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
where method is not null and method!='N/A';
\ No newline at end of file
......