Commit 80db534d 80db534d4aabe1607f29c90c8c941cfaa7ed557f by zhanghao

commit

1 parent e0fdf4c9
Showing 1 changed file with 10 additions and 9 deletions
#!/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
......