running hive 0.12 with error of slf4j
11,790
Solution 1
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
Solution 2
you have to delete /usr/local/hive/lib/slf4j-log4j12-1.6.1.jar because hive will automatically use slf4j-log4j jar file present in hadoop.
you can also refer here https://issues.apache.org/jira/browse/HIVE-6162
Solution 3
Of the 2 SLF4J bindings being listed in the warning you'll need to exclude one of them from the classpath.
Even though this is a warning SLF4J will pick one logging framework/implementation and bind with it - binding is determined by the JVM and is mostly considered a random function.
Author by
Mohammed AbuAli
Updated on June 05, 2022Comments
-
Mohammed AbuAli almost 2 years
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]
hive>