Commit abbc6294 abbc6294987d6acd11bf3d1b866260a796e1d3c7 by 张浩

commit

1 parent e7b42211
......@@ -10,8 +10,13 @@ sleep 3
hive -f ./shell/load_data.hql
hive -f ./shell/method_count.hql
hive -f ./shell/biz_data_count.hql
hive -f ./shell/biz_data_response.hql
method=$(hive -f ./shell/method_select.hql)
for tmp in $method
do
hive -hivevar method=$tmp -f ./shell/biz_data_count.hql
hive -hivevar method=$tmp -f ./shell/biz_data_response.hql
done
hadoop fs -rm /input/data/$time
rm ../$time
......
......@@ -3,5 +3,5 @@ use testdb;
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='com.ai.handler.plan.detail.index.info'
where method is not null and method!='N/A' and method=${hivevar:method}
group by method,biz_data;
\ No newline at end of file
......
......@@ -3,4 +3,4 @@ use testdb;
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='com.ai.handler.plan.detail.index.info';
\ No newline at end of file
where method is not null and method!='N/A' and method=${hivevar:method};
\ No newline at end of file
......