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
fc911e7d
...
fc911e7daaf8d75c4e9411fbe8f938cadd6245a1
authored
2022-02-25 10:53:23 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
58b1f066
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
run_linux.sh
shell/create_table.hql
shell/tc_response.hql
run_linux.sh
View file @
fc911e7
...
...
@@ -12,6 +12,7 @@ hive -f ./shell/load_data.hql
hive -f ./shell/method_count.hql
hive -f ./shell/biz_data_count.hql
hive -f ./shell/biz_data_response.hql
hive -f ./shell/tc_response.hql
hadoop fs -rm /input/data/
$time
rm ../
$time
...
...
@@ -21,3 +22,5 @@ sleep 3
sqoop
export
--connect
"jdbc:mysql://127.0.0.1:3306/bigdata"
--username root --password zidonghua --table biz_data_count --export-dir /user/hive/warehouse/testdb.db/biz_data_count --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 --export-dir /user/hive/warehouse/testdb.db/biz_data_response --input-fields-terminated-by
'\t'
sleep 3
sqoop
export
--connect
"jdbc:mysql://127.0.0.1:3306/bigdata"
--username root --password zidonghua --table tc_response --export-dir /user/hive/warehouse/testdb.db/tc_response --input-fields-terminated-by
'\t'
...
...
shell/create_table.hql
View file @
fc911e7
...
...
@@ -35,4 +35,12 @@ biz_data string,
uid string,
timestamp string,
response string
) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
CREATE TABLE tc_response(
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/tc_response.hql
0 → 100755
View file @
fc911e7
use testdb;
INSERT OVERWRITE TABLE tc_response
select method,biz_data,uid,timestamp,response
from qa_log
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');
\ No newline at end of file
Please
register
or
sign in
to post a comment