oozie shell脚本作业

o3imoua4  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(310)

我有一个shell script.sh,它需要一个属性文件script.properties。
我将此脚本执行为:./script.sh script.properties
现在我想用oozie运行这个脚本。
如何将script.properties文件传递到script.sh。

nkkqxpd9

nkkqxpd91#

将属性文件复制到与script.sh相同的hdfs路径中,并添加为 <file>[FILE-PATH]</file> 在workflow.xml中。
检查此链接以获取shell操作示例http://rogerhosto.com/apache-oozie-shell-script-example/

相关问题