gpt4 book ai didi

hadoop - Oozie Shell脚本作业

转载 作者:行者123 更新时间:2023-12-02 21:09:56 25 4
gpt4 key购买 nike

我有一个 shell 程序脚本script.sh,它需要一个属性文件script.properties。

我将此脚本执行为:
./script.sh script.properties

现在,我想使用oozie运行此脚本。

如何将script.properties文件传递到script.sh。

最佳答案

将属性文件复制到与script.sh相同的hdfs路径中,并在workflow.xml中添加为<file>[FILE-PATH]</file>

检查此链接以获取shell操作示例http://rogerhosto.com/apache-oozie-shell-script-example/

关于hadoop - Oozie Shell脚本作业,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40551187/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com