登录到终端后,我可以很好地运行脚本,但是在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
答案 0 :(得分:1)
确保 /etc/foo/bar/backup.sh
中的 all nodes of NiFi
文件可用。