gpt4 book ai didi

oozie - 使用 Oozie 运行 shell 脚本

转载 作者:行者123 更新时间:2023-12-04 00:54:28 25 4
gpt4 key购买 nike

我正在尝试运行 sh通过 Oozie 编写脚本,但我面临一个问题:

Cannot run program "script.sh" (in directory "/mapred/local/taskTracker/dell/jobcache/job_201312061003_0001/attempt_201312061003_0001_m_000000_0/work"): java.io.IOException: error=2, No such file or directory.



请帮助我完成必要的步骤。

最佳答案

这个错误真的很模棱两可。以下是一些帮助我解决此问题的问题。

- 如果您在 kerberos 集群上运行 oozie 工作流,请确保通过将您的 Kerberos Keytab 作为参数传递来进行身份验证:

...
<shell>
<exec>scriptPath.sh</exec>
<file>scriptPath.sh</file>
<file>yourKeytabFilePath</file>
</shell>
...

- 在您的 shell 文件 (scriptPath.sh) 中,确保删除第一行 shell 引用。
#!usr/bin/bash

实际上,如果此 shell 引用未部署在所有数据节点上,则可能会导致此错误代码。

关于oozie - 使用 Oozie 运行 shell 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20416015/

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