Browse Source

AMBARI-2879. Oozie failed at smoke test in secured cluster. (swagle)

Siddharth Wagle 11 years ago
parent
commit
f1dc8beb76

+ 1 - 1
ambari-agent/src/main/puppet/modules/hdp-nagios/files/check_oozie_status.sh

@@ -20,7 +20,7 @@
 #
 #
 #
 #
 # OOZIE_URL is of the form http://<hostname>:<port>/oozie
 # OOZIE_URL is of the form http://<hostname>:<port>/oozie
-HOST=$1
+HOST=`echo $1 | tr '[:upper:]' '[:lower:]'`
 PORT=$2
 PORT=$2
 JAVA_HOME=$3
 JAVA_HOME=$3
 SEC_ENABLED=$4
 SEC_ENABLED=$4

+ 1 - 1
ambari-agent/src/main/puppet/modules/hdp-oozie/files/oozieSmoke.sh

@@ -66,7 +66,7 @@ export kinit_path_local=$9
 export OOZIE_EXIT_CODE=0
 export OOZIE_EXIT_CODE=0
 export JOBTRACKER=`getValueFromField ${hadoop_conf_dir}/mapred-site.xml mapred.job.tracker`
 export JOBTRACKER=`getValueFromField ${hadoop_conf_dir}/mapred-site.xml mapred.job.tracker`
 export NAMENODE=`getValueFromField ${hadoop_conf_dir}/core-site.xml fs.default.name`
 export NAMENODE=`getValueFromField ${hadoop_conf_dir}/core-site.xml fs.default.name`
-export OOZIE_SERVER=`getValueFromField ${oozie_conf_dir}/oozie-site.xml oozie.base.url`
+export OOZIE_SERVER=`getValueFromField ${oozie_conf_dir}/oozie-site.xml oozie.base.url | tr '[:upper:]' '[:lower:]'`
 export OOZIE_EXAMPLES_DIR=`rpm -ql oozie-client | grep 'oozie-examples.tar.gz$' | xargs dirname`
 export OOZIE_EXAMPLES_DIR=`rpm -ql oozie-client | grep 'oozie-examples.tar.gz$' | xargs dirname`
 cd $OOZIE_EXAMPLES_DIR
 cd $OOZIE_EXAMPLES_DIR
 
 

+ 1 - 1
ambari-agent/src/main/puppet/modules/hdp-oozie/files/oozieSmoke2.sh

@@ -65,7 +65,7 @@ export NNHOST=$8
 export OOZIE_EXIT_CODE=0
 export OOZIE_EXIT_CODE=0
 export JOBTRACKER=`getValueFromField ${hadoop_conf_dir}/yarn-site.xml yarn.resourcemanager.address`
 export JOBTRACKER=`getValueFromField ${hadoop_conf_dir}/yarn-site.xml yarn.resourcemanager.address`
 export NAMENODE=`getValueFromField ${hadoop_conf_dir}/core-site.xml fs.defaultFS`
 export NAMENODE=`getValueFromField ${hadoop_conf_dir}/core-site.xml fs.defaultFS`
-export OOZIE_SERVER=`getValueFromField ${oozie_conf_dir}/oozie-site.xml oozie.base.url`
+export OOZIE_SERVER=`getValueFromField ${oozie_conf_dir}/oozie-site.xml oozie.base.url | tr '[:upper:]' '[:lower:]'`
 export OOZIE_EXAMPLES_DIR=`rpm -ql oozie-client | grep 'oozie-examples.tar.gz$' | xargs dirname`
 export OOZIE_EXAMPLES_DIR=`rpm -ql oozie-client | grep 'oozie-examples.tar.gz$' | xargs dirname`
 cd $OOZIE_EXAMPLES_DIR
 cd $OOZIE_EXAMPLES_DIR