我在 hdinsight 集群中有 hive,在我的本地机器上有 nifi。我正在尝试从 executeprocess 处理器执行配置单元脚本,其属性设置如下:
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 '[]'.
我也通过提供本地机器路径尝试了命令参数。虽然抛出了同样的错误。
在脚本中,我试图在现有表中插入一行。
请帮助我我做错了什么。
谢谢