commit
Showing
3 changed files
with
4 additions
and
4 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment