jj172
jj172

Reputation: 809

How to get Java to access Cassandra 1.0.10

Can anyone recommend a good way to create scripts in java that will work with an older Cassandra 1.0.10 database? I'm having trouble finding stuff online. Is thrift a type of driver?

Thanks!

Upvotes: 0

Views: 79

Answers (1)

JensG
JensG

Reputation: 13411

Apache Thrift is way to connect to the Cassandra RPC server 1).

In the Cassandra source three there is a file /interface/cassandra.thrift which is an interface description file (IDL) that can be fed to the Apache Thrift compiler in order to generate Java code. By means of this Java code you will be able to access Cassandra. The whole process is described in more detail in the Cassandra wiki.

However, it is recommended to use a more high-level client library instead, because the raw Cassandra API is quite complex. You'll find the existing libraries, such as Hector, much more handy for your task.


1) Some more details about Thrift can be found in this answer.

Upvotes: 2

Related Questions