tags:

views:

128

answers:

1

Hi guys

I have read some tutorials on what Cassandra is and what it can do but my problem is how to interface with Cassandra in java? (A tutorial will be nice :-) )

If possible, can someone please show me whether I should use Thrift or Hector (which one is better and why)?

Thanks in advance.

PS Can I integrate Hibernate with Cassandra?

+1  A: 

Hibernate uses JDBC Drivers to connect to relational databases. Cassandra is a ColumnFamily based, which is A relational database (distributed one).

The problem is to find a proper JDBC driver for your case. Here is a project I Googled:

http://code.google.com/p/sql4d/

It's not active currently, but you got the idea of how to find the right one.

Having object-relationship mapping through Hibernate you won't have to worry about the specific dialect Cassandra use and just enjoy the ride.

Well.. that's how it sounds theoretically.

Edit: Here is the tutorial I find most descriptive, separated in 5 posts:

Yet another way is using Pelops library for usage of Cassandra. More info on it HERE.

Getting started with Cassandra - a rather short post on the matter.

Hope you find of your answers there!

vlood
Sorry, but this doesn't help me at all. I want to know what's the best tool/library that works for Cassandra in Java? Also, how to do read/write/etc. The curious thing was if I could integrate Hibernate with Cassandra but if it's not possible, I'm open for alternatives.
The Elite Gentleman
Hope the edit of my answer is of more use to you now.
vlood
Thanks, btw...I didn't give you a negative score.
The Elite Gentleman
It would not be a problem if it was you - after all it's an expression of personal opinion ;)
vlood
Dude, for your great effort. I'm accepting your solution. The links did help.
The Elite Gentleman
Happy to help :)I'm a little curious what's the project you need Cassandra. Is it something specific, or just getting to know the technology?
vlood