Apache nifi 脚本在终端中运行良好,但为;“未找到”;使用executestream命令运行时

Apache nifi 脚本在终端中运行良好,但为;“未找到”;使用executestream命令运行时,apache-nifi,Apache Nifi,当我登录到终端时,我能够很好地运行一个脚本,但是当在NiFi内部运行相同的脚本时,我从处理器得到一个错误。 我确保拥有脚本的用户/组与NiFi运行的用户相同 ExecuteStreamCommand[id=<id>] Failed to process session due to java.io.IOException: Cannot run program "backup.sh" (in directory "/etc/foo/bar"): error=2, No such fi

当我登录到终端时,我能够很好地运行一个脚本,但是当在NiFi内部运行相同的脚本时,我从处理器得到一个错误。 我确保拥有脚本的用户/组与NiFi运行的用户相同

ExecuteStreamCommand[id=<id>] Failed to process session due to java.io.IOException: Cannot run program "backup.sh" (in directory "/etc/foo/bar"): error=2, No such file or directory: org.apache.nifi.processor.exception.ProcessException: java.io.IOException: Cannot run program "backup.sh" (in directory "/etc/foo/bar"): error=2, No such file or directory
ExecuteStreamCommand[id=]由于java.io.IOException无法处理会话:无法运行程序“backup.sh”(在目录“/etc/foo/bar”):错误=2,没有这样的文件或目录:org.apache.nifi.processor.exception.ProcessException:java.io.IOException:无法运行程序“backup.sh”(在目录“/etc/foo/bar”):错误=2,没有这样的文件或目录

确保
/etc/foo/bar/backup.sh
文件在NiFi的所有节点中可用