Configuration properties specified in coordinator job are not seen in workflow's param tags.

Coordinator:

<action>
    <workflow>
      <app-path>${workflowRoot}/report_action.xml</app-path>
      <configuration>
        <property>
         <name>OUTPUT_COORD</name>
         <value>${workflowRoot}/2014_05_01</value>
        </property>
      </configuration>
    </workflow>
  </action>

Workflow:

<action name="pig-node">
      <pig>
...
        <param>OUTPUT=${OUTPUT_COORD}</param> 
      </pig>
      <ok to="end"/>
      <error to="fail"/>
</action>

What I get is 'EL_ERROR', variable OUTPUT_COORD cannot be resolved.

What could be the problem?

有帮助吗?

解决方案

Syntax wise, variables are well defined in Coordinator and Workflow. As Mzf pointed out, it seems you are running workflow directly. Instead you need to run coordinator which will eventually run workflow (as defined) and pass the value of OUTPUT_COORD to Workflow from Coordinator as well.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top