In Oozie, how I'd be able to use script output

47 Views Asked by At

I have to create a cron-like coordinator job and collect some logs.

/mydir/sample.sh >> /mydir/cron.log 2>&1

Can I use simple oozie wf, which I use for any shell command? I'm asking because I've seen that there are specific workflows to execute .sh scripts

1

There are 1 best solutions below

0
On BEST ANSWER

Sure, you can execute Shell action (On any node in the Yarn cluster) or use the Ssh action if you'd like to target specific hosts. You have to keep in mind that the "/mydir/cron.log" file will be created on the host the action is executed on and the generated file might no be available for other Oozie actions.