sqldump

(coffee) => code

Getting the Titan-0.3.2 Java Driver to Work in Scala

Attempting to use the Java driver for Titan-0.3.2 (the current stable Titan release) with Cassandra v1.2.6 in a Scala project throws the following Astyanax error:

1
2
3
java.lang.NoSuchMethodError: 
org.apache.cassandra.thrift.TBinaryProtocol: 
method (Lorg/apache/thrift/transport/TTransport;)V not found

This can be traced back to a bug in Astyanax v1.56.37 which was fixed in v1.56.43. This can be fixed by ensuring that this dependency is listed above the Titan driver in your pom.xml or sbt.build.