我是靠谱客的博主 动听朋友,最近开发中收集的这篇文章主要介绍Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

[root@hadoop001 bin]# ./schematool -initSchema -dbType mysql
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hive/apache-hive-2.3.6-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-2.5.2/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Exception in thread "main" java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider
	at org.apache.hadoop.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:91)
	at org.apache.hive.beeline.HiveSchemaTool.<init>(HiveSchemaTool.java:95)
	at org.apache.hive.beeline.HiveSchemaTool.<init>(HiveSchemaTool.java:82)
	at org.apache.hive.beeline.HiveSchemaTool.main(HiveSchemaTool.java:1117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
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:190)
	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)
	... 8 more
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.crypto.key.KeyProvider
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 13 more

 

最后

以上就是动听朋友为你收集整理的Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider的全部内容,希望文章能够帮你解决Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/crypto/key/KeyProvider所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(41)

评论列表共有 0 条评论

立即
投稿
返回
顶部