gpt4 book ai didi

rest - OOZIE REST API RERUN - START 作业功能不起作用

转载 作者:行者123 更新时间:2023-12-04 15:29:05 26 4
gpt4 key购买 nike

OOZIE REST API RERUN - START 作业功能不起作用

你好,
我想启动 Oozie 的作业抛出 REST API(CDH 5.3.1 中的 Oozie 4.0.0 版),但该作业未启动或重新运行。

使用 Google 的 ADVANCED REST API,我推出了:

PUT {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?action=start

结果是:
200 OK
响应不包含任何数据。

但工作流的工作没有开始。

然后我尝试启动
PUT  {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?action=rerun

结果是:
500 Internal Server Error
Apache Tomcat/6.0.41 - 错误报告 HTTP 状态 500 - org.xml.sax.SAXParseException; file.type Exception reportmessage org.xml.sax.SAXParseException 过早结束;文件过早结束。说明服务器遇到内部错误,无法完成此请求。异常
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)

root cause

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: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)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.41 logs.

Apache Tomcat/6.0.41

Code highlighting thanks to Code Mirror


The job is on the HDFS and the rest command:

GET {namenode}:11000/oozie/v1/job/0000001-150528075707705-oozie-oozi-W?show=info

工作正常。答案是:
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 ......

使用 API Rest 重新运行 o 启动与 Oozie 中的工作流相关联的作业的最简单方法是什么?
根据官方文档中的建议,这项工作不起作用:

http://archive-primary.cloudera.com/cdh5/cdh/5/oozie-4.0.0-cdh5.3.1/WebServicesAPI.html#Re-Runing_a_Workflow_Job

提前致谢。

塞巴斯蒂亚诺。

最佳答案

PUT 似乎适合重新运行。但是,它还需要为两个属性之一提供 XML

<?xml version="1.0" encoding="UTF-8"?><configuration><property> <name>oozie.wf.rerun.failnodes</name> <value>false</value> </property></configuration>

或者
<?xml version="1.0" encoding="UTF-8"?><configuration><property> <name>oozie.wf.rerun.skip.nodes</name> <value>,</value> </property></configuration>

这些决定了哪些节点被重新运行或跳过。

关于rest - OOZIE REST API RERUN - START 作业功能不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30527628/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com