hadoop - 通过 HUE 创建的 Oozie 工作流的 Rest API

标签 hadoop oozie hue

我已经通过 Hue 界面创建了一个 Oozie 工作流。我有几个与此相关的问题

一个。我可以看到创建的工作流 XML。但我没有看到 job.properties 文件。 Job.properties 存储在哪里?

有 REST API 可以提交通过编写 workflow.xml 和 job.properties 创建的 Oozie 作业。对于通过 HUE 创建的 oozie 工作流,REST API 是什么?任何样本都会有所帮助。

最佳答案

不想先提出问题再回答。但由于我不得不搜索一段时间,所以答案可能会对某人有所帮助......

当使用 Hue 创建 Oozie 工作流时,工作流 xml 由 Hue 创建并放置在 HDFS 位置。以后可以将该文件复制并放置在 HDFS 中的任何位置。

要对 oozie 进行 REST API 调用以启动工作流,连同 workflow.xml,需要传递一个 config.xml。为了获取要在 config.xml 中填充的值,我使用这种方法来查找详细信息。

Submit the job via Hue. 
Open the Oozie Web UI. (You can get the link from the Ambari. Click on oozie and look at the quick links at the top). 
In the Oozie Web UI, the job that is executed will be shown in list view. 
One of the tab is the Job Configuration. 
The content of the Job Configuration will be the content in the config.xml that need to be passed along with the REST API.

示例 URL 是

http://IP-where-Oozie-server-runs:11000/oozie/v1/jobs?action=start

要启动的实际工作流存在于 config.xml 中

  <property>
    <name>oozie.wf.application.path</name>
    <value>hdfs://Named-node-name:8020/location/to/workflow.xml </value>
  </property>

仍未回答的问题是 - 是否有 job.properties 文件。看起来它不存在并且不需要。

注意:根据 romain 的更新,job.properties 不存在并被 POST 正文内容替换。

关于hadoop - 通过 HUE 创建的 Oozie 工作流的 Rest API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28308838/

相关文章:

运行 start-all.sh 时出现 hadoop ClassNotFoundException

algorithm - 运行趋势或无趋势 Twitter 谣言项目

java - OOZIE HIVE操作-工作流.xml属性不会传递给子任务

opengl - 如何使用 GLSL 更改纹理的色调?

hadoop - 色调 session 统计详细信息

groovy - 使用Groovy在Hadoop流中包含jar文件

hadoop - 验证 Hive 单查询和多查询并行性

hadoop - 在 Oozie 中运行 Hive Action 时出错

hadoop - Oozie 作业失败

java - 色调蜂蜡创建表错误