当前位置:   article > 正文

安装启动Hive过程中遇到的问题以及解决方法:_hive启动时class path contains multiple slf4j bindings

hive启动时class path contains multiple slf4j bindings. slf4j: found binding

问题一:
启动hive报错:SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.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.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)V
解决方法:斜体部分冲突,删除其中一个

hadoop@zy-virtual-machine:/usr/local/hive$ cd /usr/local/hive/lib
hadoop@zy-virtual-machine:
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/634685
推荐阅读
相关标签
  

闽ICP备14008679号