浏览代码

AMBARI-5645. Ooozie Service Check fails intermittently. (Michael Harp via mahadev)

Mahadev Konar 11 年之前
父节点
当前提交
97ffc02263

+ 2 - 2
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/OOZIE/package/files/oozieSmoke2.sh

@@ -43,7 +43,7 @@ function checkOozieJobStatus {
     act_status=$(IFS='';echo $cmd_output | grep ^Status | cut -d':' -f2 | sed 's| ||g')
     echo "workflow_status=$act_status"
     if [ "RUNNING" == "$act_status" ]; then
-      #increment the couner and get the status again after waiting for 15 secs
+      #increment the counter and get the status again after waiting for 15 secs
       sleep 15
       (( i++ ))
       elif [ "SUCCEEDED" == "$act_status" ]; then
@@ -102,6 +102,6 @@ cmd="${kinitcmd}source ${oozie_conf_dir}/oozie-env.sh ; /usr/bin/oozie -Doozie.a
 echo $cmd
 job_info=`su - ${smoke_test_user} -c "$cmd" | grep "job:"`
 job_id="`echo $job_info | cut -d':' -f2`"
-checkOozieJobStatus "$job_id"
+checkOozieJobStatus "$job_id" 15
 OOZIE_EXIT_CODE="$?"
 exit $OOZIE_EXIT_CODE