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
c7ac85c4
...
c7ac85c4fab8c976e486c484c6eebca40184d1ac
authored
2021-04-20 14:41:02 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
18e0a635
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
run.sh
shell/back_up.hql
run.sh
View file @
c7ac85c
...
...
@@ -8,4 +8,4 @@
#total=$(hive -f ./shell/select.hql)
#result=$(echo $total | tr " " ",")
#curl http://192.168.8.113:9090/tool/hadoopTotal?total=${result}
$(
hive -e
'create table testdb.qa_log_$(1) as select * from testdb.qa_log'
)
\ No newline at end of file
$(
hive -hivevar
name
=
qa_log_
$1
-f ./shell/back_up.hql
)
\ No newline at end of file
...
...
shell/back_up.hql
0 → 100755
View file @
c7ac85c
use testdb;
create table ${hivevar:name} as select * from qa_log
\ No newline at end of file
Please
register
or
sign in
to post a comment