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
5687da91
...
5687da917efaf55c967e46c2693fcb9458f39925
authored
2022-02-11 17:04:43 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
bfc914ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
run_linux_debug.sh
shell_debug/method_count.hql
run_linux_debug.sh
View file @
5687da9
...
...
@@ -7,14 +7,14 @@ sleep 3
maxTimestamp
=
$(
hive -f ./shell/max_timestamp.hql
)
hive -f ./shell_debug/load_data.hql
$(
hive -hivevar
m
ax
Timestamp
=
$maxTimestamp
-f ./shell_debug/method_count.hql
)
$(
hive -hivevar
max
Timestamp
=
$maxTimestamp
-f ./shell_debug/biz_data_count.hql
)
$(
hive -hivevar
max
Timestamp
=
$maxTimestamp
-f ./shell_debug/biz_data_response.hql
)
$(
hive -hivevar
m
y
Timestamp
=
$maxTimestamp
-f ./shell_debug/method_count.hql
)
#$(hive -hivevar my
Timestamp=$maxTimestamp -f ./shell_debug/biz_data_count.hql)
#$(hive -hivevar my
Timestamp=$maxTimestamp -f ./shell_debug/biz_data_response.hql)
hadoop fs -rm /input/debug/data/app.out
sqoop
export
--connect
"jdbc:mysql://127.0.0.1:3306/bigdata"
--username root --password zidonghua --table method_count_debug --export-dir /user/hive/warehouse/testdb.db/method_count_debug --input-fields-terminated-by
'\t'
sleep 3
sqoop
export
--connect
"jdbc:mysql://127.0.0.1:3306/bigdata"
--username root --password zidonghua --table biz_data_count_debug --export-dir /user/hive/warehouse/testdb.db/biz_data_count_debug --input-fields-terminated-by
'\t'
sleep 3
sqoop
export
--connect
"jdbc:mysql://127.0.0.1:3306/bigdata"
--username root --password zidonghua --table biz_data_response_debug --export-dir /user/hive/warehouse/testdb.db/biz_data_response_debug --input-fields-terminated-by
'\t'
#
sleep 3
#
sqoop export --connect "jdbc:mysql://127.0.0.1:3306/bigdata" --username root --password zidonghua --table biz_data_count_debug --export-dir /user/hive/warehouse/testdb.db/biz_data_count_debug --input-fields-terminated-by '\t'
#
sleep 3
#
sqoop export --connect "jdbc:mysql://127.0.0.1:3306/bigdata" --username root --password zidonghua --table biz_data_response_debug --export-dir /user/hive/warehouse/testdb.db/biz_data_response_debug --input-fields-terminated-by '\t'
...
...
shell_debug/method_count.hql
View file @
5687da9
...
...
@@ -2,5 +2,5 @@ use testdb;
INSERT OVERWRITE TABLE method_count_debug
select method,count(1) as count,max(timestamp) as timestamp
from (select * from qa_log_debug where method is not null and method!='N/A' and timestamp>${hivevar:m
ax
Timestamp}) my_debug
from (select * from qa_log_debug where method is not null and method!='N/A' and timestamp>${hivevar:m
y
Timestamp}) my_debug
group by method;
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment