run.sh
459 Bytes
#!/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}
$(hive -e 'create table testdb.qa_log_$(1) as select * from testdb.qa_log')