Commit da9593dc da9593dc8338b12b36f6998ff5b98954e9658d37 by 张浩

commit

1 parent 46e7bbb7
...@@ -14,8 +14,8 @@ hive -f ./shell/method_count.hql ...@@ -14,8 +14,8 @@ hive -f ./shell/method_count.hql
14 method=$(hive -f ./shell/method_select.hql) 14 method=$(hive -f ./shell/method_select.hql)
15 for tmp in $method 15 for tmp in $method
16 do 16 do
17 hive -hivevar method=$tmp -f ./shell/biz_data_count.hql 17 hive -hivevar mytemp=$tmp -f ./shell/biz_data_count.hql
18 hive -hivevar method=$tmp -f ./shell/biz_data_response.hql 18 hive -hivevar mytemp=$tmp -f ./shell/biz_data_response.hql
19 done 19 done
20 20
21 hadoop fs -rm /input/data/$time 21 hadoop fs -rm /input/data/$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='${hivevar:method}' 6 where method is not null and method!='N/A' and method='${hivevar:mytemp}'
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='${hivevar:method}';
...\ 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:mytemp}';
...\ No newline at end of file ...\ No newline at end of file
......