Hi,
propagate-configuration is what you probably need, which propagates
properties from parent workflow instance to sub-flow instance.

Thanks,
-Idris

On Fri, May 18, 2012 at 3:35 PM, mickey <[email protected]> wrote:

> Dear all:
>    I want to run sub workflow in oozie.follow this config:
>
> <action  name='subwf1'>
>        <sub-workflow>
>            <oozie>${oozie}</oozie>
>            <app-path>${nameNode}/tmp/${**wf:user()}/workflows/map-**
> reduce</app-path>
>            <configuration>
>                <property>
>                    <name>jobTracker</name>
>                    <value>${jobTracker}</value>
>                </property>
>                <property>
>                    <name>nameNode</name>
>                    <value>${nameNode}</value>
>                </property>
>                <property>
>                    <name>mapred.mapper.class</**name>
>                    <value>org.apache.oozie.**example.SampleMapper</value>
>                </property>
>                <property>
>                    <name>mapred.reducer.class</**name>
>                    <value>org.apache.oozie.**example.SampleReducer</value>
>                </property>
>                <property>
>                    <name>mapred.map.tasks</name>
>                    <value>1</value>
>                </property>
>                <property>
>                    <name>mapred.input.dir</name>
>                    <value>${inputDir}</value>
>                </property>
>                <property>
>                    <name>mapred.output.dir</name>
>                    <value>${outputDir}/mapRed</**value>
>                </property>
>                <property>
>                  <name>mapred.job.queue.name</**name>
>                  <value>${queueName}</value>
>                </property>
>            </configuration>
>        </sub-workflow>
>        <ok  to="end"  />
>        <error  to="fail"  />
>    </action>
>
>    this config are copied from wiki.
>    but if i hava some configs in wf-job.properties.how to load them in sub
> workflow?any configs?
>    i have readed its source code,org.apache.oozie.action.**oozie.**
> SubWorkflowActionExecutor.
>    i only found these configs:
>      oozie
>      app-path
>      propagate-configuration
>      configuration
>
>  have not found any configs to indicate to load wf-job.properties.I know i
> can config like :
>
> <property>
>                    <name>jobTracker</name>
>                    <value>${jobTracker}</value>
>                </property>
>                <property>
>                    <name>nameNode</name>
>                    <value>${nameNode}</value>
>                </property>
>
>
>  but if i have a lot of configs,it is a big task.
>
>  any body can help me?Thank you!
>

Reply via email to