运行配置单元0.12,错误为slf4j

Moh*_*Ali 3 java apache hive ubuntu-14.04

使用jar中的配置初始化日志:文件:/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]
Run Code Online (Sandbox Code Playgroud)

蜂巢>

Ham*_*ref 6

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

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


sid*_*ain 5

您必须删除 /usr/local/hive/lib/slf4j-log4j12-1.6.1.jar 因为 hive 将自动使用 hadoop 中存在的 slf4j-log4j jar 文件。

您也可以参考这里https://issues.apache.org/jira/browse/HIVE-6162