Commit da9593dc da9593dc8338b12b36f6998ff5b98954e9658d37 by 张浩

commit

1 parent 46e7bbb7
......@@ -14,8 +14,8 @@ hive -f ./shell/method_count.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
hive -hivevar mytemp=$tmp -f ./shell/biz_data_count.hql
hive -hivevar mytemp=$tmp -f ./shell/biz_data_response.hql
done
hadoop fs -rm /input/data/$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='${hivevar:method}'
where method is not null and method!='N/A' and method='${hivevar:mytemp}'
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='${hivevar:method}';
\ No newline at end of file
where method is not null and method!='N/A' and method='${hivevar:mytemp}';
\ No newline at end of file
......