【问题标题】:Oozie shell script jobOozie shell 脚本作业
【发布时间】:2016-11-11 15:31:57
【问题描述】:

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

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

现在我想使用 oozie 运行这个脚本。

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

【问题讨论】:

    标签: hadoop oozie hortonworks-data-platform oozie-coordinator


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-07
      相关资源
      最近更新 更多