You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2012/06/19 00:16:42 UTC
[jira] [Commented] (OOZIE-12) Support for multiple job-xml elements
in action nodes
[ https://issues.apache.org/jira/browse/OOZIE-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396309#comment-13396309 ]
Robert Kanter commented on OOZIE-12:
------------------------------------
v2 defines a new version (0.4) of the wf schema instead of modifying the existing versions.
> Support for multiple job-xml elements in action nodes
> -----------------------------------------------------
>
> Key: OOZIE-12
> URL: https://issues.apache.org/jira/browse/OOZIE-12
> Project: Oozie
> Issue Type: Improvement
> Reporter: Samir Eljazovic
> Assignee: Robert Kanter
> Labels: oozie
> Attachments: 12-v2.patch, 12.patch
>
>
> There is a use case when having ability to specify multiple job-xml elements in action node would help in reducing the complexity of Oozie workflow and simplify WF configuration maintenance.
> The basic idea is to split configuration properties into multiple files (per component for example) and re-use these files for different actions in the WF.
> For example, we can have following configuration files available:
> * app-db-config.xml
> * app-ws-config.xml
> * app-hbase-config.xml
> * app-hadoop-config.xml
> * ...
> Now, when action in WF requires properties from one or two configuration file, we would be able to specify only those files:
> <workflow-app name="foo-wf" xmlns="uri:oozie:workflow:0.1">
> ...
> <action name="MultipleJobXMLsAction">
> <map-reduce>
> <job-tracker>foo:9001</job-tracker>
> <name-node>bar:9000</name-node>
> <job-xml>/app-db-config.xml</job-xml>
> <job-xml>/app-hbase-config.xml</job-xml>
> <configuration>
> <property>
> <name>mapred.input.dir</name>
> <value>/usr/tucu/input-data</value>
> </property>
> <property>
> <name>mapred.output.dir</name>
> <value>/usr/tucu/input-data</value>
> </property>
> <property>
> <name>mapred.reduce.tasks</name>
> <value>${firstJobReducers}</value>
> </property>
> </configuration>
> </map-reduce>
> <ok to="myNextAction"/>
> <error to="errorCleanup"/>
> </action>
> ...
> </workflow-app>
> This functionality can be easily implemented inside setup method for Hadoop mapper class but it would be more elegant to have it exposed as part of Oozie WF
--
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