简体   繁体   English

导入失败:java.io.IOException:无法运行程序“hive”:错误=2,没有那个文件或目录

[英]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?有没有人遇到过这样的问题?

enter image description here在此处输入图片说明

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:我希望正在执行以下类似的内容,并且缺少cdhive二进制文件的 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.

相关问题 java.io.IOException: 无法运行程序“...”: java.io.IOException: error=2, No such file or directory - java.io.IOException: Cannot run program “…”: java.io.IOException: error=2, No such file or directory ant jar错误:执行失败:java.io.IOException:无法运行程序... $ {aapt}“:error = 2,没有这样的文件或目录 - ant jar error: Execute failed: java.io.IOException: Cannot run program…${aapt}": error=2, No such file or directory JVM无法启动:java.io.IOException:无法运行程序“/ usr / libexec / StartupItemContext; error = 2,没有这样的文件或目录 - JVM failed to start: java.io.IOException: Cannot run program "/usr/libexec/StartupItemContext; error=2, No such file or directory java.io.IOException:无法运行程序“/usr/bin/sh”:java.io.IOException:error=2,没有那个文件或目录 - java.io.IOException: Cannot run program “/usr/bin/sh”: java.io.IOException: error=2, No such file or directory java.io.IOException:无法运行程序“ C:\\ AutoIt \\ ModenaAutoIt.exe”:java.io.IOException:error = 2,没有此类文件或目录 - java.io.IOException: Cannot run program “C:\AutoIt\ModenaAutoIt.exe”: java.io.IOException: error=2, No such file or directory 无法启动测试系统'slim':java.io.IOException:无法运行程序“ java”:error = 2,没有这样的文件或目录 - Unable to start test system 'slim': java.io.IOException: Cannot run program “java”: error=2, No such file or directory spark 2.0-java.io.IOException:无法运行程序“ jupyter”:error = 2,没有这样的文件或目录 - spark 2.0 - java.io.IOException: Cannot run program “jupyter”: error=2, No such file or directory java.io.IOException:无法运行程序“usr/bin/ffmpeg”:错误=2,没有那个文件或目录 - java.io.IOException: Cannot run program “usr/bin/ffmpeg ”: error=2, No such file or directory 线程“main”中的异常java.io.IOException:无法运行程序“”:错误=2,没有这样的文件或目录 - Exception in thread "main" java.io.IOException: Cannot run program "": error=2, No such a file or directory 错误:无法解析 POM java.io.IOException:无法运行程序“/bin/java” - ERROR: Failed to parse POMs java.io.IOException: Cannot run program "/bin/java"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM