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
0bacb687
...
0bacb6874b9ee3ac253d20dda699d7daf9443640
authored
2022-01-12 11:29:36 +0800
by
张浩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
7e69f494
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
shell/biz_data_count.hql
shell/biz_data_response.hql
shell/load_data.hql
shell/method_count.hql
shell/biz_data_count.hql
View file @
0bacb68
use testdb;
INSERT
INTO
TABLE biz_data_count
INSERT
OVERWRITE
TABLE biz_data_count
select method,biz_data,count(1) as count,max(timestamp) as timestamp
from qa_log
where method='com.ai.handler.plan.detail.index.info'
...
...
shell/biz_data_response.hql
View file @
0bacb68
use testdb;
INSERT
INTO
TABLE biz_data_response
INSERT
OVERWRITE
TABLE biz_data_response
select method,biz_data,uid,timestamp,response
from qa_log
where method='com.ai.handler.plan.detail.index.info';
\ No newline at end of file
...
...
shell/load_data.hql
View file @
0bacb68
use testdb;
truncate table qa_log;
truncate table method_count;
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
...
...
shell/method_count.hql
View file @
0bacb68
use testdb;
INSERT
INTO
TABLE method_count
INSERT
OVERWRITE
TABLE method_count
select method,count(1) as count,max(timestamp) as timestamp
from qa_log
group by method;
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment