Browse Source

AMBARI-528. Fix oozie smoke test failure (Contributed by Ramya)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/ambari-186@1347376 13f79535-47bb-0310-9956-ffa450edef68
Vikram Dixit K 13 years ago
parent
commit
e4d581b292
2 changed files with 3 additions and 1 deletions
  1. 2 0
      CHANGES.txt
  2. 1 1
      hmc/puppet/modules/hdp-oozie/files/oozieSmoke.sh

+ 2 - 0
CHANGES.txt

@@ -6,6 +6,8 @@ characters wide.
 
 Release 0.1.x - unreleased
 
+  AMBARI-528. Fix oozie smoke test failure (Ramya via Vikram)
+
   AMBARI-525. Javascript should not pass flag in case of post install add nodes. (Vikram)
 
   AMBARI-524. Add nodes restore yum default on post install add nodes page (Vikram)

+ 1 - 1
hmc/puppet/modules/hdp-oozie/files/oozieSmoke.sh

@@ -55,7 +55,7 @@ su - ${smoke_test_user} -c "hadoop dfs -copyFromLocal $OOZIE_EXAMPLES_DIR/exampl
 su - ${smoke_test_user} -c "hadoop dfs -copyFromLocal $OOZIE_EXAMPLES_DIR/examples/input-data input-data"
 
 cmd="source ${oozie_conf_dir}/oozie-env.sh ; /usr/bin/oozie job -oozie $OOZIE_SERVER -config $OOZIE_EXAMPLES_DIR/examples/apps/map-reduce/job.properties  -run"
-job_info=`su - ${smoke_test_user} -c "$cmd"`
+job_info=`su - ${smoke_test_user} -c "$cmd" | grep "job:"`
 job_id="`echo $job_info | cut -d':' -f2`"
 checkOozieJobStatus "$job_id"
 OOZIE_EXIT_CODE="$?"