缺少Hive执行罐:/usr/local/hadoop/hive/lib/hive-exec-*.jar [英] Missing Hive Execution Jar: /usr/local/hadoop/hive/lib/hive-exec-*.jar
问题描述
我做了以下步骤来下载并安装配置单元
> svn co http://svn.apache.org/repos/asf/hive/trunk hive
> cd hive
我的hadoop安装文件夹是$ HADOOP_HOME / hive和$ HADOOP_HOME = / usr / local / hadoop 。我将.bashrc中的环境变量设置为/ home / hduser,这是我的Hadoop用户和$ JAVA_HOME。
export HADOOP_HOME = / usr / local / hadoop
export HIVE_HOME = $ HADOOP_HOME / hive
export JAVA_HOME = / usr / lib / jvm / java-6-openjdk
$ / pre
我还在我的$ PATH变量中添加了hadoop和hive的bin文件夹,如下所示:
export PATH = $ PATH:$ HADOOP_HOME / bin
export PATH = $ HIVE_HOME / bin:$ PATH
但是,当从CLI运行hive时,我收到以下错误。
hduser @ somnath-laptop:/ usr / local / hadoop / hive $ bin / hive
缺少Hive Execution Jar:/ usr / local / hadoop / hive / lib / hive- exec - *。jar
我应该下载这个jar并将其添加到/ lib /还是在一些我需要配置的特定于hive的环境变量。任何建议都是非常有用的。
解决方案我自己解决了问题,但不知道究竟发生了什么。
$ b
按照我原来的问题提到的过程,我创建了$ HADOOP_HOME / hive,但是它给了我一个丢失的jar错误。
所以,我做的是:我下载了hive-0.10.0.tar.gz,并在$ HADOOP_HOME下解压缩。所以新创建的文件夹是$ HADOOP_HOME / hive-0.10.0。
我将$ HADOOP_HOME / hive-0.10.0 / lib下的许多jar复制到$ HADOOP_HOME / hive / lib中,当我执行下一步时,
$ HADOOP_HOME / hive> bin / hive
它工作!请注意我的$ HIVE_HOME = $ HADOOP_HOME / hive和$ HIVE_HOME / bin添加到路径。
希望这有助于有人面临类似的问题。
I have Hadoop 1.0.4 running on a single node cluster set up on my Ubuntu machine.
I did the following steps to download and install the hive release
> svn co http://svn.apache.org/repos/asf/hive/trunk hive
> cd hive
My hadoop install folder is $HADOOP_HOME/hive and $HADOOP_HOME=/usr/local/hadoop. I set both the environment variables in .bashrc under /home/hduser which is my Hadoop user and the $JAVA_HOME as well.
export HADOOP_HOME=/usr/local/hadoop
export HIVE_HOME=$HADOOP_HOME/hive
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
I have also added the bin folder of both hadoop and hive in my $PATH variable as follows
export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$HIVE_HOME/bin:$PATH
But while running hive from CLI, I am getting the below error.
hduser@somnath-laptop:/usr/local/hadoop/hive$ bin/hive
Missing Hive Execution Jar: /usr/local/hadoop/hive/lib/hive-exec-*.jar
Should I download this jar and add it to the /lib/ or is there some hive-specific environment variables that I need to configure. Any suggestion would be very helpful.
解决方案 I resolved the problem myself but not sure what exactly happened.
By following the process I mentioned in my original question, I created the $HADOOP_HOME/hive but it was giving me a missing jar error.
So, what I did was: I downloaded hive-0.10.0.tar.gz and extracted it under $HADOOP_HOME. So the newly created folder was $HADOOP_HOME/hive-0.10.0.
I copied the entire lot of jars under $HADOOP_HOME/hive-0.10.0/lib to $HADOOP_HOME/hive/lib and when I executed next,
$HADOOP_HOME/hive> bin/hive
It worked! Please note my $HIVE_HOME=$HADOOP_HOME/hive and $HIVE_HOME/bin is added to path.
Hope this helps somebody facing similar problem.
这篇关于缺少Hive执行罐:/usr/local/hadoop/hive/lib/hive-exec-*.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!