[ 
https://issues.apache.org/jira/browse/OOZIE-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158521#comment-13158521
 ] 

Patrick Angeles commented on OOZIE-619:
---------------------------------------

One more thing to add here,

You actually want to explicitly declare the 
oozie.launcher.mapred.child.java.opts in your subworkflow's workflow.xml.

So the child workflow.xml should look like this:

<action>
..
<property> 
<name>oozie.launcher.mapred.child.java.opts</name> 
<value>${oozieLauncherJVMOpts}</value> 
</property> 
...
</action>

And the parent workflow.xml should pass in the variable literally as:

<sub-workflow>
..
<property> 
<name>oozieLauncherJVMOpts</name> 
<value>${oozieLauncherJVMOpts}</value> 
</property> 
...
</sub-workflow>

                
> [Docs] Document that "oozie.launcher.mapred.child.java.opts" prop. in a 
> workflow will not propagate to sub-workflows.
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: OOZIE-619
>                 URL: https://issues.apache.org/jira/browse/OOZIE-619
>             Project: Oozie
>          Issue Type: Improvement
>            Reporter: Harsh J
>
> When you have oozie.launcher.mapred.child.java.opts defined in a 
> job.properties and use it to submit a workflow that carries subworkflows that 
> launch single-JVM actions as well, the settings does not propagate down to 
> them. Not even with <propagate-configuration>. This is cause the config is 
> treated to be a meta one, and is applied only to the master.
> To instead have it do, one would have to inject special configuration 
> elements like:
> In job.properties:
> oozieLauncherJVMOpts=-Xmx1g
> In workflow.xml:
> ... 
> <sub-workflow> 
> .. 
> <configuration> 
> ... 
> <property> 
> <name>oozie.launcher.mapred.child.java.opts</name> 
> <value>${oozieLauncherJVMOpts}</value> 
> </property> 
> </configuration> 
> We should document this limitation.
> Props to Patrick Angeles for finding this.

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

        

Reply via email to