I used cassandra-jdbc 1.2.5, but when query for timestamp columns it shows 'AssertError'. It is due incompatibility of cassandra-jdbc-1.2.5 with cassandra-2.0.8. It works with cassandra-1.x series. So I need to know what are other ways to use cassandra in Java with preparedStatement. I saw some clients like thrift but cannot execute sql type queries.
Asked
Active
Viewed 263 times
1 Answers
0
At this point in time, I don't think there is a JDBC driver that works with Casandra 2.x. The "casandra-jdbc" driver looks like it has not been touched since April 2013. There is even an issue in the tracker that says "Doesn't works with Cassandra 2.0" but it hasn't been assigned to anyone.
Unless you intend to do the work yourself (or pay someone else to do it for you), it looks pretty grim.
According to this question (Cassandra Client Java API's) there are a number of Java APIs for Casandra that don't involve JDBC. You would probably be advised to switch to one of these.
There is also a page on the Official Casandra site that lists client drivers: