简体   繁体   English

如何使用 Nifi“ExecuteProcess”处理器从 shell 脚本执行 python 脚本?

[英]How to execute python script from a shell script using Nifi “ExecuteProcess” processor?

I am trying to execute a python script through a shell script using the "ExecuteProcess" processor.我正在尝试使用“ExecuteProcess”处理器通过 shell 脚本执行 python 脚本。 I could find shell command inside the shell script is working, but the python script is not getting executed.我可以在 shell 脚本中找到 shell 命令正在运行,但 python 脚本没有被执行。 When I execute the shell script manually python script and shell command both are getting executed.当我手动执行 shell 脚本时,python 脚本和 shell 命令都在执行。 What change should I make to execute the python script using the "ExecuteProcess" processor.为了使用“ExecuteProcess”处理器执行 python 脚本,我应该做些什么改变。 更新配置 工艺流程 外壳脚本 手动执行 Shell

It worked after setting the working directory property with the path where the shell script is present.它在使用 shell 脚本所在的路径设置工作目录属性后起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM