[英]Import failed: java.io.IOException: Cannot run program "hive": error=2, No such file or directory
When migrating a table from postgres to hdfs (hive) using sqoop api java, an error occurs.使用 sqoop api java 将表从 postgres 迁移到 hdfs (hive) 时,发生错误。 Has anyone encountered such a problem?
有没有人遇到过这样的问题?
When you execute your program within your IDE, when it starts, it can't find hive
on the PATH.当您在 IDE 中执行程序时,当它启动时,它在 PATH 上找不到
hive
。 I presume you're using IntelliJ, therefore you need to check your Launch Configuration and if you just executed in Debug mode or Run mode:我假设您正在使用 IntelliJ,因此您需要检查您的启动配置,如果您只是在调试模式或运行模式下执行:
I would expect something like the following is being executed and is missing the cd
or the PATH to your hive
binary:我希望正在执行以下类似的内容,并且缺少
cd
或hive
二进制文件的 PATH:
cd $HIVE_SRC/packaging/target/apache-hive-{version}-bin/apache-hive-{version}-bin
bin/hive --debug -hiveconf hive.root.logger=DEBUG,console
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.