How to access local directory with script executed in oozie? How to access local directory with script executed in oozie? shell shell

How to access local directory with script executed in oozie?


An Oozie shell action is executed on a random Hadoop node, i.e. not locally on the machine where the Oozie server is running.

To implement an action that is executed locally, you could use the SSH action: http://oozie.apache.org/docs/3.3.2/DG_SshActionExtension.html with localhost. See e.g. https://github.com/airawat/OozieSamples/tree/master/oozieProject/workflowSshAction for a nice complete example.

Alternatively, you can start a shell action and execute a script that will SSH to the correct machine.