|
@@ -1,10 +1,11 @@
|
|
|
#!/bin/sh
|
|
|
set -x
|
|
|
|
|
|
-source /root/anaconda3/bin/activate py37
|
|
|
sh_path=$(dirname $0)
|
|
|
source ${sh_path}/00_common.sh
|
|
|
|
|
|
+source /root/anaconda3/bin/activate py37
|
|
|
+
|
|
|
export PATH=$SPARK_HOME/bin:$PATH
|
|
|
export HADOOP_CONF_DIR=/etc/taihao-apps/hadoop-conf
|
|
|
export JAVA_HOME=/usr/lib/jvm/java-1.8.0
|
|
@@ -118,7 +119,7 @@ check_ad_hive() {
|
|
|
local max_minute=30
|
|
|
local elapsed=0
|
|
|
while true; do
|
|
|
- local python_return_code=$(/root/anaconda3/bin/python ${sh_path}/ad_utils.py --excute_program check_ad_origin_hive --partition ${today_early_1} --hh 23)
|
|
|
+ local python_return_code=$(python ${sh_path}/ad_utils.py --excute_program check_ad_origin_hive --partition ${today_early_1} --hh 23)
|
|
|
|
|
|
elapsed=$(($(date +%s) - $step_start_time))
|
|
|
if [ "$python_return_code" -eq 0 ]; then
|