我有一个shell script.sh,它需要一个属性文件script.properties。我将此脚本执行为:./script.sh script.properties现在我想用oozie运行这个脚本。如何将script.properties文件传递到script.sh。
nkkqxpd91#
将属性文件复制到与script.sh相同的hdfs路径中,并添加为 <file>[FILE-PATH]</file> 在workflow.xml中。检查此链接以获取shell操作示例http://rogerhosto.com/apache-oozie-shell-script-example/
<file>[FILE-PATH]</file>
1条答案
按热度按时间nkkqxpd91#
将属性文件复制到与script.sh相同的hdfs路径中,并添加为
<file>[FILE-PATH]</file>
在workflow.xml中。检查此链接以获取shell操作示例http://rogerhosto.com/apache-oozie-shell-script-example/