Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running hive 0.12 with error of slf4j

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>

like image 648
Mohammed AbuAli Avatar asked Nov 20 '14 22:11

Mohammed AbuAli


2 Answers

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
like image 182
Hamdi Charef Avatar answered Oct 26 '22 23:10

Hamdi Charef


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

like image 31
siddhartha jain Avatar answered Oct 27 '22 00:10

siddhartha jain