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

时间:2018-10-02 09:15:24

标签: shell sh oozie oozie-workflow

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 个答案:

答案 0 :(得分:0)

当然,您可以执行Shell操作(在Yarn群集中的任何节点上),也可以使用Ssh操作(如果要定位特定的主机)。您必须记住,将在执行操作的主机上创建“ /mydir/cron.log”文件,并且生成的文件可能无法用于其他Oozie操作。