Hadoop 通过HUE创建的用于Oozie工作流的Rest API

Hadoop 通过HUE创建的用于Oozie工作流的Rest API,hadoop,oozie,hue,Hadoop,Oozie,Hue,我已经通过色调界面创建了一个Oozie工作流。我有几个与此相关的问题 a。我可以看到创建的工作流XML。但是我没有看到job.properties文件。Job.properties存储在哪里 b。有RESTAPI提交通过编写workflow.xml和job.properties创建的Oozie作业。对于通过色调创建的oozie工作流,RESTAPI是什么?任何样品都有帮助 不想提出问题然后回答。但由于我不得不找时间做搜索,所以答案可能会对某人有所帮助 使用色调创建Oozie工作流时,工作流xml

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

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


b。有RESTAPI提交通过编写workflow.xml和job.properties创建的Oozie作业。对于通过色调创建的oozie工作流,RESTAPI是什么?任何样品都有帮助

不想提出问题然后回答。但由于我不得不找时间做搜索,所以答案可能会对某人有所帮助

使用色调创建Oozie工作流时,工作流xml由色调创建并放置在HDFS位置。稍后可以复制此文件并将其放置在HDFS中的任何位置

要对oozie进行RESTAPI调用以启动工作流,以及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是

要启动的实际工作流显示在config.xml中

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

oozie.wf.application.path
hdfs://Named-node-name:8020/location/to/workflow.xml 
仍然没有回答的问题是-是否存在job.properties文件。看起来它不存在,也不是必需的


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

不想提出问题然后回答。但由于我不得不找时间做搜索,所以答案可能会对某人有所帮助

使用色调创建Oozie工作流时,工作流xml由色调创建并放置在HDFS位置。稍后可以复制此文件并将其放置在HDFS中的任何位置

要对oozie进行RESTAPI调用以启动工作流,以及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是

要启动的实际工作流显示在config.xml中

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

oozie.wf.application.path
hdfs://Named-node-name:8020/location/to/workflow.xml 
仍然没有回答的问题是-是否存在job.properties文件。看起来它不存在,也不是必需的


注意:正如romain所更新的那样,job.properties不存在,并被POST body内容所取代。

Use确实使用了Oozie的REST API。如果查看它,您将看到job.properties被POST数据中提供的数据所取代:

e、 g


用户名
班萨尔姆
....

Use实际上是在使用Oozie的RESTAPI。如果查看它,您将看到job.properties被POST数据中提供的数据所取代:

e、 g


用户名
班萨尔姆
....

属性和工作流文件都在工作区文件夹中

属性和工作流文件都在工作区文件夹中