Reg. java Connection to Titan+Hbase (too may jars compatibility issue)

183 views
Skip to first unread message

deepak dabi

unread,
Jun 18, 2015, 1:10:34 PM6/18/15
to aureliu...@googlegroups.com
Hi team,

I tried to connetc titan+hbase storage by below code in java:

Configuration conf = new BaseConfiguration();
conf.setProperty("storage.backend","hbase");
conf.setProperty("storage.hostname","10.42.94.159,10.42.94.160,10.42.94.113");

I am using 
commons-configuration-1.10.jar, 
logback-classic-0.9.9.jar ( i tried with latest version it's not working)
slf4j-api-1.5.5.jar ( i tried new version its not working)
titan-core-0.5.4.jar

Now i am getting below error which make no sense to me , can somebody help me. I just wnated to make java connection to Hbase+titan base graph.

Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
java.lang.NoSuchMethodError: ch.qos.logback.classic.LoggerContext.getCopyOfPropertyMap()Ljava/util/Map;
at ch.qos.logback.classic.spi.LoggerContextRemoteView.<init>(LoggerContextRemoteView.java:41)
at ch.qos.logback.classic.LoggerContext.<init>(LoggerContext.java:69)
at org.slf4j.impl.StaticLoggerBinder.initialize(StaticLoggerBinder.java:59)
at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:53)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:48)
at org.slf4j.LoggerFactory.staticInitialize(LoggerFactory.java:83)
at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:73)
at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<clinit>(GraphDatabaseConfiguration.java:41)
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:59)
at com.titan.rest.rexster.Test.main(Test.java:21)
Failed to instantiate logger [ch.qos.logback.classic.selector.ContextSelector]
Reported exception:
java.lang.IllegalStateException: contextSelector cannot be null. See also http://logback.qos.ch/codes.html#null_CS
at org.slf4j.impl.StaticLoggerBinder.getLoggerFactory(StaticLoggerBinder.java:98)
at org.slf4j.LoggerFactory.staticInitialize(LoggerFactory.java:83)
at org.slf4j.LoggerFactory.<clinit>(LoggerFactory.java:73)
at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<clinit>(GraphDatabaseConfiguration.java:41)
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:59)
at com.titan.rest.rexster.Test.main(Test.java:21)
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:59)
at com.titan.rest.rexster.Test.main(Test.java:21)
Caused by: java.lang.IllegalStateException: Logging factory implementation cannot be null. See also http://www.slf4j.org/codes.html#null_LF
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:174)
at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<clinit>(GraphDatabaseConfiguration.java:41)
... 2 more

Regards,
Deepak Dabi

deepak dabi

unread,
Jun 18, 2015, 3:03:33 PM6/18/15
to aureliu...@googlegroups.com
is there anybody who has tried titan to connect from JAVA ?

Deepak
Reply all
Reply to author
Forward
0 new messages