运行 hive 0.12 时出现 slf4j 错误 [英] running hive 0.12 with error of slf4j

查看:26
本文介绍了运行 hive 0.12 时出现 slf4j 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 jar:file:/usr/local/hive/lib/hive-common-0.12.0.jar!/hive-log4j.properties 中的配置初始化日志记录

Logging initialized using configuration in jar:file:/usr/local/hive/lib/hive-common-0.12.0.jar!/hive-log4j.properties

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-    1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/slf4j-log4j12-1.6.1.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.slf4j.impl.Log4jLoggerFactory]

蜂巢>

推荐答案

需要删除Hadoop和Hive之间绑定的这些jar文件

you need to delete these jar files binding between Hadoop and Hive

  • rm lib/hive-jdbc-2.0.0-standalone.jar
  • rm lib/log4j-slf4j-impl-2.4.1.jar

这篇关于运行 hive 0.12 时出现 slf4j 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆