运行配置单元时,出现以下错误
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/*:.
在这个dir/usr/local/apache-hive-2.1.1-bin/lib中,还提供了以下jar
- hive-exec-2.1.1.jar
- hive-jdbc-2.1.1.jar
任何建议都会非常有用。。。!!
谢谢
1条答案
按热度按时间afdcj2ne1#
检查$hive\u home是否指向正确的文件夹。您可能拼写错误,或者指向的是不再在本地安装的配置单元版本。