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
80db534d
...
80db534d4aabe1607f29c90c8c941cfaa7ed557f
authored
2021-04-20 14:17:44 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
e0fdf4c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
run.sh
run.sh
View file @
80db534
#!/bin/bash
mvn clean package -DskipTests
hadoop fs -rm /input/data/
$1
hadoop fs -put ../
$1
/input/data/
$1
hadoop jar ./target/BrBigDataTest-1.0.0.jar com.bigdata.test.ETLApp /input/data/
$1
/input/etl/
sleep 3
hive -f ./shell/load_data.hql
total
=
$(
hive -f ./shell/select.hql
)
result
=
$(
echo
$total
| tr
" "
","
)
curl http://192.168.8.113:9090/tool/hadoopTotal?total
=
${
result
}
\ No newline at end of file
#mvn clean package -DskipTests
#hadoop fs -rm /input/data/$1
#hadoop fs -put ../$1 /input/data/$1
#hadoop jar ./target/BrBigDataTest-1.0.0.jar com.bigdata.test.ETLApp /input/data/$1 /input/etl/
#sleep 3
#hive -f ./shell/load_data.hql
#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 qa_log_
$1
as
select
*
from qa_log;
)
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment