Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-3386

Misleading error message when workflow application does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0
    • 5.1.0, 5.2.0
    • None
    • None

    Description

      Using 5.1.0 rc1, I tried to run an example workflow. Because of user error oozie.wf.application.path in job.properties pointed to a directory in HDFS that did not exist. Upon submitting the workflow, the following was returned

      bin/oozie job -oozie http://localhost:11000/oozie   -config examples/apps/demo/job.properties -Dmode=client -Dmaster=yarn -run -DnameNode=hdfs://localhost:9000
      log4j:WARN No appenders could be found for logger (org.apache.hadoop.security.authentication.client.KerberosAuthenticator).
      log4j:WARN Please initialize the log4j system properly.
      log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      Error: E0307 : E0307: Runtime error [Configuration entry oozie.jobs.api.generated.xml not present]
      

      The server.log contained the following:

      2018-11-19 15:07:13,244  WARN V1JobsServlet:523 - SERVER[Budapests-MacBook-Pro-10.local] USER[-] GROUP[-] TOKEN[-] APP[-] JOB[-] ACTION[-] URL[POST http://localhost:11000/oozie/v2/jobs?action=start&user=asasvari] error[E0307], E0307: Runtime error [Configuration entry oozie.jobs.api.generated.xml not present]
      org.apache.oozie.servlet.XServletException: E0307: Runtime error [Configuration entry oozie.jobs.api.generated.xml not present]
             at org.apache.oozie.servlet.V1JobsServlet.checkAndWriteApplicationXMLToHDFS(V1JobsServlet.java:172)
             at org.apache.oozie.servlet.BaseJobsServlet.doPost(BaseJobsServlet.java:111)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
             at org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:305)
             at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
             at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
             at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
             at org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:171)
             at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:572)
             at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:542)
             at org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:176)
             at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
             at org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:86)
             at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
             at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
             at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
             at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
             at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
             at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
             at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
             at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
             at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
             at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
             at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
             at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
             at org.eclipse.jetty.server.Server.handle(Server.java:534)
             at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
             at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
             at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
             at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
             at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
             at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
             at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
             at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
             at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
             at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
             at java.lang.Thread.run(Thread.java:745)
      

      As a user, I expect to see better error message in order to troubleshoot workflow submission failures.

      Note: Earlier (Oozie 5.0) a user got a more descriptive error such as:

      Error: E0504 : E0504: App directory [hdfs://test:8020/user/root/examples/apps/demo] does not exist
      

      Attachments

        1. OOZIE-3386-002.patch
          2 kB
          Kinga Marton
        2. OOZIE-3386-001.patch
          1 kB
          Kinga Marton

        Activity

          People

            kmarton Kinga Marton
            asasvari Attila Sasvári
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: