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
4ab7ed55
...
4ab7ed5574168ce4b4cc3ce098aa1919446f2639
authored
2022-02-15 15:38:55 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
f45b8857
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
run_linux_debug.sh
shell_debug/create_table.hql
shell_debug/huo_dong_ru_kou.hql
run_linux_debug.sh
View file @
4ab7ed5
...
...
@@ -11,6 +11,7 @@ hive -f ./shell_debug/load_data.hql
$(
hive -hivevar
myTimestamp
=
$maxTimestamp
-f ./shell_debug/method_count.hql
)
$(
hive -hivevar
myTimestamp
=
$maxTimestamp
-f ./shell_debug/biz_data_count.hql
)
$(
hive -hivevar
myTimestamp
=
$maxTimestamp
-f ./shell_debug/biz_data_response.hql
)
$(
hive -hivevar
myTimestamp
=
$maxTimestamp
-f ./shell_debug/huo_dong_ru_kou.hql
)
hadoop fs -rm /input/debug/data/app.out
...
...
@@ -19,3 +20,5 @@ 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 huo_dong_ru_kou_debug --export-dir /user/hive/warehouse/testdb.db/huo_dong_ru_kou_debug --input-fields-terminated-by
'\t'
...
...
shell_debug/create_table.hql
View file @
4ab7ed5
...
...
@@ -35,4 +35,12 @@ biz_data string,
uid string,
timestamp string,
response string
) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
CREATE TABLE huo_dong_ru_kou_debug(
method string,
biz_data string,
uid string,
timestamp string,
response string
) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
\ No newline at end of file
...
...
shell_debug/huo_dong_ru_kou.hql
0 → 100755
View file @
4ab7ed5
use testdb;
INSERT OVERWRITE TABLE huo_dong_ru_kou_debug
select method,biz_data,uid,timestamp,response
from qa_log_debug
where method is not null and method!='N/A'
and (method='com.lejane.handler.common.sidebar.operate.query.new.v3' or method='com.lejane.handler.common.sidebar.operate.query.list')
and timestamp>'${hivevar:myTimestamp}';
\ No newline at end of file
Please
register
or
sign in
to post a comment