缺少Hive Execution Jar:/usr/local/apache-hive-2.1.0-bin/lib/hive-exec-*.jar

时间:2017-06-11 18:34:12

标签: hadoop hive ubuntu-14.04

在运行配置单元时,我遇到了以下错误

Missing Hive Execution Jar: /usr/local/apache-hive-2.1.0-bin/lib/hive-exec-*.jar

查看所有相关帖子,如 Missing Hive Execution Jar: /usr/local/hadoop/hive/lib/hive-exec-*.jar

但没有帮助.. !!几乎尝试了一切

从这里开始按照以下步骤进行安装 http://www.bogotobogo.com/Hadoop/BigData_hadoop_Hive_Install_On_Ubuntu_16_04.php

这是我的所有设置

#HADOOP VARIABLES START
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export HADOOP_INSTALL=/usr/local/hadoop
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
#HADOOP VARIABLES END

#PIG VARIABLES
export PATH=$PATH:/usr/local/pig/pig-0.16.0/bin
export PIG_HOME=/usr/local/pig/pig-0.16.0
export PIG_CLASSPATH=/usr/local/pig/pig-0.16.0/conf

#HIVE VARIABLES
export HIVE_HOME=/usr/local/apache-hive-2.1.0-bin
export HIVE_CONF_DIR=/usr/local/apache-hive-2.1.0-bin/conf
export PATH=$PATH:$HIVE_HOME/bin
export CLASSPATH=$CLASSPATH:/usr/local/hadoop/lib/*:.
export CLASSPATH=$CLASSPATH:/usr/local/apache-hive-2.1.0-bin/lib/*:.

在这个目录/usr/local/apache-hive-2.1.1-bin/lib中 以下罐子也可用

- hive-exec-2.1.1.jar
- hive-jdbc-2.1.1.jar

任何建议都会非常有用...... !!

由于

1 个答案:

答案 0 :(得分:0)

检查并查看$ HIVE_HOME是否指向正确的文件夹。您可能错误拼写或者指向您当地不再安装的HIVE版本。