Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
BrBigDataTest
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
e0b7e9d3
...
e0b7e9d311d575fb9b586858f698129e3e970d5d
authored
2022-02-11 16:02:25 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
8489f1b7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
run_linux_debug.sh
shell_debug/biz_data_count.hql
shell_debug/biz_data_response.hql
shell_debug/max_timestamp.hql
shell_debug/method_count.hql
run_linux_debug.sh
View file @
e0b7e9d
...
...
@@ -4,10 +4,12 @@ hadoop fs -put /home/test/logs/app.out /input/debug/data/app.out
hadoop jar ./target/BrBigDataTest-1.0.0.jar com.bigdata.test.ETLAppDebug /input/debug/data/app.out /input/debug/etl/
sleep 3
maxTimestamp
=
$(
hive -f ./shell/max_timestamp.hql
)
hive -f ./shell_debug/load_data.hql
hive -f ./shell_debug/method_count.hql
hive -f ./shell_debug/biz_data_count.hql
hive -f ./shell_debug/biz_data_response.hql
$(
hive -hivevar
maxTimestamp
=
$maxTimestamp
-f ./shell_debug/method_count.hql
)
$(
hive -hivevar
maxTimestamp
=
$maxTimestamp
-f ./shell_debug/biz_data_count.hql
)
$(
hive -hivevar
maxTimestamp
=
$maxTimestamp
-f ./shell_debug/biz_data_response.hql
)
hadoop fs -rm /input/debug/data/app.out
...
...
shell_debug/biz_data_count.hql
View file @
e0b7e9d
...
...
@@ -3,5 +3,5 @@ use testdb;
INSERT OVERWRITE TABLE biz_data_count_debug
select method,biz_data,count(1) as count,max(timestamp) as timestamp
from qa_log_debug
where method is not null and method!='N/A'
where method is not null and method!='N/A'
and timestamp>${hivevar:maxTimestamp}
group by method,biz_data;
\ No newline at end of file
...
...
shell_debug/biz_data_response.hql
View file @
e0b7e9d
...
...
@@ -3,4 +3,4 @@ use testdb;
INSERT OVERWRITE TABLE biz_data_response_debug
select method,biz_data,uid,timestamp,response
from qa_log_debug
where method is not null and method!='N/A';
\ No newline at end of file
where method is not null and method!='N/A' and timestamp>${hivevar:maxTimestamp};
\ No newline at end of file
...
...
shell_debug/max_timestamp.hql
0 → 100755
View file @
e0b7e9d
use testdb;
select max(timestamp) as timestamp
from qa_log_debug
where method is not null and method!='N/A'
\ No newline at end of file
shell_debug/method_count.hql
View file @
e0b7e9d
...
...
@@ -3,5 +3,5 @@ use testdb;
INSERT OVERWRITE TABLE method_count_debug
select method,count(1) as count,max(timestamp) as timestamp
from qa_log_debug
where method is not null and method!='N/A'
where method is not null and method!='N/A'
and timestamp>${hivevar:maxTimestamp}
group by method;
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment