Commit abbc6294 abbc6294987d6acd11bf3d1b866260a796e1d3c7 by 张浩

commit

1 parent e7b42211
...@@ -10,8 +10,13 @@ sleep 3 ...@@ -10,8 +10,13 @@ sleep 3
10 10
11 hive -f ./shell/load_data.hql 11 hive -f ./shell/load_data.hql
12 hive -f ./shell/method_count.hql 12 hive -f ./shell/method_count.hql
13 hive -f ./shell/biz_data_count.hql 13
14 hive -f ./shell/biz_data_response.hql 14 method=$(hive -f ./shell/method_select.hql)
15 for tmp in $method
16 do
17 hive -hivevar method=$tmp -f ./shell/biz_data_count.hql
18 hive -hivevar method=$tmp -f ./shell/biz_data_response.hql
19 done
15 20
16 hadoop fs -rm /input/data/$time 21 hadoop fs -rm /input/data/$time
17 rm ../$time 22 rm ../$time
......
...@@ -3,5 +3,5 @@ use testdb; ...@@ -3,5 +3,5 @@ use testdb;
3 INSERT OVERWRITE TABLE biz_data_count 3 INSERT OVERWRITE TABLE biz_data_count
4 select method,biz_data,count(1) as count,max(timestamp) as timestamp 4 select method,biz_data,count(1) as count,max(timestamp) as timestamp
5 from qa_log 5 from qa_log
6 where method is not null and method!='N/A' and method='com.ai.handler.plan.detail.index.info' 6 where method is not null and method!='N/A' and method=${hivevar:method}
7 group by method,biz_data; 7 group by method,biz_data;
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -3,4 +3,4 @@ use testdb; ...@@ -3,4 +3,4 @@ use testdb;
3 INSERT OVERWRITE TABLE biz_data_response 3 INSERT OVERWRITE TABLE biz_data_response
4 select method,biz_data,uid,timestamp,response 4 select method,biz_data,uid,timestamp,response
5 from qa_log 5 from qa_log
6 where method is not null and method!='N/A' and method='com.ai.handler.plan.detail.index.info';
...\ No newline at end of file ...\ No newline at end of file
6 where method is not null and method!='N/A' and method=${hivevar:method};
...\ No newline at end of file ...\ No newline at end of file
......