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
16469151
...
164691514f5db35e2b18af34e87089f83eb1b277
authored
2022-01-18 15:48:13 +0800
by
张浩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
da9593dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
shell/biz_data_count.hql
shell/biz_data_response.hql
shell/load_data.hql
shell/biz_data_count.hql
View file @
1646915
use testdb;
INSERT
OVERWRITE
TABLE biz_data_count
INSERT
INTO
TABLE biz_data_count
select method,biz_data,count(1) as count,max(timestamp) as timestamp
from qa_log
where method is not null and method!='N/A' and method='${hivevar:mytemp}'
...
...
shell/biz_data_response.hql
View file @
1646915
use testdb;
INSERT
OVERWRITE
TABLE biz_data_response
INSERT
INTO
TABLE biz_data_response
select method,biz_data,uid,timestamp,response
from qa_log
where method is not null and method!='N/A' and method='${hivevar:mytemp}';
\ No newline at end of file
...
...
shell/load_data.hql
View file @
1646915
use testdb;
truncate table biz_data_count;
truncate table biz_data_response;
LOAD DATA INPATH 'hdfs://localhost:8020/input/etl' OVERWRITE INTO TABLE qa_log;
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment