蜂巢安装问题:NoClassDefFoundError:org / apache / hadoop / crypto / key / KeyProvider

时间:2019-04-26 08:42:58

标签: hive derby hadoop2

从终端触发配置单元时,我遇到以下错误。我得到的错误是:

Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at org.apache.hadoop.hive.shims.ShimLoader.createShim(ShimLoader.java:129)
    at org.apache.hadoop.hive.shims.ShimLoader.loadShims(ShimLoader.java:124)
    at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:88)
    ... 12 more
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.crypto.key.KeyProvider
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 17 more

我通过以下链接安装了Hadoop:https://www.tutorialspoint.com/hive/hive_installation.htm

这是我的〜/ .bashrc文件:

export JAVA_HOME=/usr/local/java/jdk1.8.0_131
export J2REDIR=/usr/local/java/jdk1.8.0_131/jre
export JRE_HOME=/usr/local/java/jdk1.8.0_131/jre
export PATH=$PATH:$JAVA_HOME/bin
export HADOOP_HOME=/usr/local/hadoop
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_OPTS=$HADOOP_OPTS-Djava.library.path=$HADOOP_HOME/lib/native
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin

export HDFS_NAMENODE_USER="ec2-user"
export HDFS_DATANODE_USER="ec2-user"
export HDFS_SECONDARYNAMENODE_USER="ec2-user"
export YARN_RESOURCEMANAGER_USER="ec2-user"
export YARN_NODEMANAGER_USER="ec2-user"

export HIVE_HOME=/usr/local/hive
export HIVE_CONF_DIR=/usr/local/hive/conf
export PATH=$PATH:$HIVE_HOME/bin
export CLASSPATH=$CLASSPATH:/usr/local/Hadoop/lib/*:.
export CLASSPATH=$CLASSPATH:/usr/local/hive/lib/*:.

export DERBY_HOME=/usr/local/derby
export PATH=$PATH:$DERBY_HOME/bin

export CLASSPATH=$CLASSPATH:$DERBY_HOME/lib/derby.jar:$DERBY_HOME/lib/derbytools.jar


alias rm='rm -i'
alias cp='cp -i'

理想的结果是打开配置单元终端

蜂巢>

0 个答案:

没有答案