OOZIE REST API RERUN - START Functions do not work
Hi, I want to run the REST API to work with Oozie (Oozie version 4.0.0 in CDH 5.3.1), but the task does not start or does not start.
With the ADVANCED REST API of Google, I ran:
PUT {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?action=start
Result:
200 OK
The response does not contain any data.
but workflow work does not begin.
Then I tried to run
PUT {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?action=rerun
Result:
500 Internal Server Error
Apache Tomcat / 6.0.41 - Error Report
HTTP status 500 - org.xml.sax.SAXParseException; Premature end of file.
enter exception report
message org.xml.sax.SAXParseException; Premature end of file.
Description The server detected an internal error that prevented it from completing this request.
exception
java.io.IOException: org.xml.sax.SAXParseException; Premature end of file.
org.apache.oozie.util.XConfiguration.parse(XConfiguration.java:253)
org.apache.oozie.util.XConfiguration.<init>(XConfiguration.java:63)
org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:114)
javax.servlet.http.HttpServlet.service(HttpServlet.java:730)
org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:287)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:154)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:592)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:555)
org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:159)
org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:84)
org.xml.sax.SAXParseException; Premature end of file.
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
org.apache.oozie.util.XConfiguration.parse(XConfiguration.java:248)
org.apache.oozie.util.XConfiguration.<init>(XConfiguration.java:63)
org.apache.oozie.servlet.BaseJobServlet.doPut(BaseJobServlet.java:114)
javax.servlet.http.HttpServlet.service(HttpServlet.java:730)
org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:287)
javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:154)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter (AuthenticationFilter.java∗92)
org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter (AuthenticationFilter.java∗55)
org.apache.oozie.servlet.AuthFilter.doFilter (AuthFilter.java:159)
org.apache.oozie.servlet.HostnameFilter.doFilter (HostnameFilter.java:84)
note A complete trace of the root cause stack is available in Apache Tomcat / 6.0.41.
Apache Tomcat / 6.0.41
Code designation through code mirroring
Work is done in HDFS and the rest command:
GET {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?show=info
works great. Answer:
200 OK
{
appPath: "hdfs://{namenode}/user/hue/oozie/workspaces/_yarn_-oozie-57-1432735905.63"
acl: null
status: "SUCCEEDED"
createdTime: "Thu, 28 May 2015 15:34:37 GMT"
conf ......
What is the easiest way to restart a job related workflow in Oozie using the Rest API? Work with tips in official documentation does not work:
http://archive-primary.cloudera.com/cdh5/cdh/5/oozie-4.0.0-cdh5.3.1/WebServicesAPI.html#Re-Runing_a_Workflow_Job
.
.