在 Oozie 中,我将如何使用脚本输出

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

我必须创建一个类似 cron 的协调器作业并收集一些日志。

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

我可以使用简单的 oozie wf,我可以将其用于任何 shell 命令吗? 我问是因为我看到有特定的工作流程来执行 .sh 脚本

当然,如果您想定位特定主机,您可以执行 Shell action (On any node in the Yarn cluster) or use the Ssh 操作。您必须记住,将在执行操作的主机上创建“/mydir/cron.log”文件,并且生成的文件可能无法用于其他 Oozie 操作。