Details
Description
ranger_hadoop_conf_file=${WEBAPP_ROOT}/WEB-INF/classes/conf/core-site.xml
The ranger_hadoop_conf_file variable had been defined and equaled to ${WEBAPP_ROOT}/WEB-INF/classes/conf/core-site.xml. So repeated ${WEBAPP_ROOT}/WEB-INF/classes/conf/core-site.xml should been replaced by ${ranger_hadoop_conf_file} in following code:
if [ -d ${WEBAPP_ROOT}/WEB-INF/classes/conf ]; then chown -R ${unix_user} ${WEBAPP_ROOT}/WEB-INF/classes/conf if [ "${hadoop_conf}" == "" ] then log "[WARN] Property hadoop_conf not found. Creating blank core-site.xml." echo "<configuration></configuration>" > ${WEBAPP_ROOT}/WEB-INF/classes/conf/core-site.xml else if [ -f ${hadoop_conf_file} ]; then ln -sf ${hadoop_conf_file} ${WEBAPP_ROOT}/WEB-INF/classes/conf/core-site.xml else log "[WARN] core-site.xml file not found in provided hadoop_conf path. Creating blank core-site.xml" echo "<configuration></configuration>" > ${WEBAPP_ROOT}/WEB-INF/classes/conf/core-site.xml fi fi fi
Attachments
Issue Links
- links to