nifi中的executeprocess错误

but5z9lq  于 2021-06-26  发布在  Hive
关注(0)|答案(0)|浏览(386)

我在hdinsight集群中有hive,在本地机器中有nifi。我正在尝试从executeprocess processor执行配置单元脚本,其属性设置如下:

command: hive
command argument: -f /home/name/firstq.hql
Redirect Error Stream: true

我有到hiveconnection池的控制器服务。启动处理器时,抛出如下错误:

o.a.n.processors.standard.ExecuteProcess ExecuteProcess[id=d5db18b2-0159-1000-6569-c054490cbfa5] Failed to create process due to java.io.IOException: Cannot run program "hive": CreateProcess error=2, The system cannot find the file specified: java.io.IOException: Cannot run program "hive": CreateProcess error=2, The system cannot find the file specified

org.apache.nifi.util.ReflectionUtils Failed while invoking annotated method 'public void org.apache.nifi.processors.standard.ExecuteProcess.shutdownExecutor()' with arguments '[]'.

我也尝试了命令参数,给出了本地机器路径。尽管抛出了相同的错误。
在脚本中,我试图在现有表中插入一行。
请帮帮我,我做错什么了。
谢谢

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题