[ 
https://issues.apache.org/jira/browse/OOZIE-256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221095#comment-13221095
 ] 

David Arthur commented on OOZIE-256:
------------------------------------

+1 this is a very unhelpful error. Without digging into Oozie source, there is 
no real way to see what's wrong. In my case, I was missing 
"oozie.wf.application.path" as well as some properties used in my workflow.xml
                
> GH-352: NPE on job -rerun
> -------------------------
>
>                 Key: OOZIE-256
>                 URL: https://issues.apache.org/jira/browse/OOZIE-256
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Hadoop QA
>
> Note: I'm told that the below command to rerun a job is incorrect. i.e. it 
> needs -config the parameter set as well. Regardless, Oozie could display a 
> better error, and at least should not throw an NPE.
> On hash 6cf74d357f2ccdf31b960b337c36776ef0b734fc
> To reproduce:
> 1. Run the map-reduce example job: ./bin/oozie job -run -config 
> examples/apps/map-reduce/job.properties
> 2. Wait for job to run to completion.
> 3. Attempt to re-run said job: ./bin/oozie job -rerun 
> 0000002-110126164352576-oozie-atm-W
> The oozie client prints the following:
> Error: HTTP error code: 500 : Internal Server Error
> In the oozie server logs, you'll see the following error:
> 2011-01-26 16:55:51,347 ERROR V1JobServlet:522 - USER[atm] GROUP[users] 
> TOKEN[-] APP[-] JOB[-] ACTION[-] URL[PUT 
> http://localhost:11000/oozie/v1/job/0000001-110126164352576-oozie-atm-W?action=rerun]
>  error, null
> java.lang.NullPointerException
>       at java.util.Hashtable.put(Hashtable.java:394)
>       at java.util.Properties.setProperty(Properties.java:143)
>       at org.apache.hadoop.conf.Configuration.set(Configuration.java:437)
>       at 
> org.apache.oozie.servlet.BaseJobServlet.checkAuthorizationForApp(BaseJobServlet.java:165)
>       at 
> org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:110)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:640)
>       at 
> org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:285)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>       at 
> com.cloudera.alfredo.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:368)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>       at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>       at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>       at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
>       at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>       at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>       at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to