简体   繁体   English

蜂巢无法识别罐子

[英]Hive doesn't recognize jar

I started working with Hive just recently, so I may be a little new to this, I compiled a jar using Maven Build and for some reason when I am trying to add it in the hive, it won't work. 我是最近才开始使用Hive的,所以可能对此有些陌生,我使用Maven Build编译了一个jar,由于某种原因,当我试图将其添加到Hive中时,它将无法正常工作。 I get the following error: Query returned non-zero code: 1, cause: ex-0.0.0.1-SNAPSHOT.jar does not exist. 我收到以下错误:查询返回的非零代码:1,原因:ex-0.0.0.1-SNAPSHOT.jar不存在。 I uploaded the file using hue, and I can find it if I do dfs -ls in hive. 我使用hue上传了文件,如果我在hive中执行dfs -ls可以找到它。

What am I missing? 我想念什么? (I was able to load a jar I got online) (我能够装载一个我上网的罐子)

Thanks! 谢谢!

If you can find your jar by -ls ing to it and it was properly built, usually this error is cause by incorrectly putting quotes around the path to the jar. 如果您可以通过-ls找到它,并正确构建了该jar,则通常该错误是由于在jar的路径周围错误地加上了引号引起的。

Incorrect: 不正确:

add jar '/root/complete/path/to/jar.jar';

Correct: 正确:

add jar /root/complete/path/to/jar.jar;

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

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