Commit e76aee5c authored by 赵建伟's avatar 赵建伟

update codes

parent e87e6ee2
......@@ -21,5 +21,5 @@ BI report project init.
####mkdir -p /data/bi-report/tmp
####mkdir -p /data/bi-report/result
####mkdir -p /data/bi-report/logs
####chown -R hadoop:hadoop /data/bi-report
####chown -R bi:bi /data/bi-report
......@@ -57,4 +57,4 @@ sed -i "s/\$V_7DAY_M_D_AGO/$V_7DAY_M_D_AGO/g" $tmp_file_name
/opt/hive/hive-1.1.0-cdh5.16.1/bin/beeline -u jdbc:hive2://bj-gm-prod-cos-datacenter004:10000 -n data --outputformat=csv2 --showHeader=true -e "`cat $tmp_file_name`" > $result_file_name
rm -rf $tmp_file_name
exit 0
\ No newline at end of file
exit $?
\ No newline at end of file
......@@ -55,4 +55,4 @@ sed -i "s/\$V_7DAY_M_D_AGO/$V_7DAY_M_D_AGO/g" $tmp_file_name
/opt/hive/hive-1.1.0-cdh5.16.1/bin/beeline -u jdbc:hive2://bj-gm-prod-cos-datacenter004:10000 -n data -e "`cat $tmp_file_name`"
rm -rf $tmp_file_name
exit 0
\ No newline at end of file
exit $?
\ No newline at end of file
......@@ -54,4 +54,4 @@ sed -i "s/\$V_7DAY_M_D_AGO/$V_7DAY_M_D_AGO/g" tmp.sql
/opt/spark/spark-2.4.5-bin-hadoop2.7/bin/beeline -u jdbc:hive2://bj-gm-prod-cos-datacenter003:10010/online -n data --outputformat=csv2 --showHeader=true -e "`cat tmp.sql`">$2
rm -rf tmp.sql
exit 0
\ No newline at end of file
exit $?
\ No newline at end of file
......@@ -65,4 +65,4 @@ echo "cc: "$cc
python2.7 /home/bi/bi-report/lib/python/sendmail.py -t $to -s 自动发送 -m $cc -a $result_file_name
exit 0
\ No newline at end of file
exit $?
\ No newline at end of file
......@@ -10,5 +10,6 @@ export DB=$2
export TABLE=$3
export PARTITIONS=$4
res=`/bin/bash /srv/apps/data-ready-checker/client/bin/checker.sh`
#echo $res
\ No newline at end of file
/bin/bash /srv/apps/data-ready-checker/client/bin/checker.sh
exit $?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment