hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran <kiranvk2...@gmail.com>
Subject HBase and Apache Jena -SLF4J Conflict
Date Sat, 04 May 2013 14:30:57 GMT
In a project I have to use HBase and Apache Jena libraries together.The SLF4J
versions in lib directory of aech of them are 1.5.8 and 1.6.4
respectively.When I run the project I get the following error message:

/SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/usr/lib/hbase/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/home/yahoo/Downloads/apache-jena-2.7.4/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
Exception in thread "main" java.lang.NoSuchMethodError:
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
        at
org.apache.commons.logging.impl.SLF4JLocationAwareLog.debug(SLF4JLocationAwareLog.java:133)
        at org.apache.hadoop.hbase.zookeeper.ZKUtil.connect(ZKUtil.java:95)
        at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.<init>(ZooKeeperWatcher.java:123)
        at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getZooKeeperWatcher(HConnectionManager.java:1265)
        at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.setupZookeeperTrackers(HConnectionManager.java:526)
        at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:516)
        at
org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:173)
        at
org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
        at lookup.lookup_gen.generate_lk_table(lookup_gen.java:45)
        at lookup_tester.main(lookup_tester.java:23)
Java Result: 1/


However when I run the same project without Jena libraries no error occurs?

Any idea of how to solve this problem?




--
View this message in context: http://apache-hbase.679495.n3.nabble.com/HBase-and-Apache-Jena-SLF4J-Conflict-tp4043667.html
Sent from the HBase User mailing list archive at Nabble.com.

Mime
View raw message