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
c6be12b6
...
c6be12b6da56ee73ee4978068248aaf0f3d629c5
authored
2022-02-16 12:56:26 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
668fa882
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
run_linux_debug.sh
run_linux_debug.sh
View file @
c6be12b
...
...
@@ -4,7 +4,6 @@ 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
hive -f ./shell_debug/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
...
...
@@ -13,10 +12,18 @@ hive -f ./shell_debug/huo_dong_ru_kou.hql
hadoop fs -rm /input/debug/data/app.out
mysql -uroot -pzidonghua -e
"truncate bigdata.method_count_debug;"
sleep 3
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
mysql -uroot -pzidonghua -e
"truncate bigdata.biz_data_count_debug;"
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
mysql -uroot -pzidonghua -e
"truncate bigdata.biz_data_response_debug;"
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
mysql -uroot -pzidonghua -e
"truncate bigdata.huo_dong_ru_kou_debug;"
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'
...
...
Please
register
or
sign in
to post a comment