You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Gordon Wang (JIRA)" <ji...@apache.org> on 2014/09/17 05:44:33 UTC

[jira] [Created] (OOZIE-2008) When oozie war is not setup, oozie service start fails

Gordon Wang created OOZIE-2008:
----------------------------------

             Summary: When oozie war is not setup, oozie service start fails
                 Key: OOZIE-2008
                 URL: https://issues.apache.org/jira/browse/OOZIE-2008
             Project: Oozie
          Issue Type: Bug
            Reporter: Gordon Wang


When I start Oozie service without setting up Oozie war file, the oozied.sh fails.

Check the source code further. I think it is a bug in oozied.sh. When oozie war is not setup, oozied.sh tries to prepare the war file. See
{code}
setup_oozie() {
  if [ ! -e "${CATALINA_BASE}/webapps/oozie.war" ]; then
    echo "WARN: Oozie WAR has not been set up at ''${CATALINA_BASE}/webapps'', d
oing default set up"
    ${BASEDIR}/bin/oozie-setup.sh
    if [ "$?" != "0" ]; then
      exit -1
    fi
  fi
  echo
}
{code}

But we should call {noformat}"${BASEDIR}/bin/oozie-setup.sh prepare-war"{noformat} to prepare the war file with default configuration.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)