Search code examples
workflowhadoop-streamingoozie

How do I create and set variables in oozie workflows?


How do I set variables in Oozie workflows?

For example the workflow here has an ${output} variable but where would it be set?

Is 'output' a special word, and if so how do I create my own variables?

Update: I am using hadoop streaming with Python, not Java.


Solution

  • Output is not a special word. The value of this variable will be passed to this workflow during the execution time using job.properties file. You can see an example job.properties file where all the variables related cluster details, environment and many other are kept as variables.