Quick Java Apache Cassandra(or Hbase) Implementation Example

I have a program that i need to implement a storage system for.
I don’t need MSSQL or MySQL or Derby or any other sql solution. I need someone to implement either http://hbase.apache.org/ or http://cassandra.apache.org/

I prefer you did http://cassandra.apache.org/ only use hbase, if and only if we discuss and agree to it.

Deliverables:
A java netbeans project with which contains a class with its main method implemented.

The program must demonstrate 5 things.
1 – creating a cassandra columnfamily
2 – updating a field in a column family
3 – removing a field/row from a column family
4 – adding a field/row to a column family

The program i’m going to integrate cassandra into is a web spider so i would like the examples to use a column family called.

content
and the sample data should include title,description,keyword,url
I don’t think cassandra supports auto incremented values, if it does then the column family should also have an id field that automatically increases by 1

Cassandra will only be run on a single machine so no distributed setup is needed!

There are some java examples already on the official apache page http://wiki.apache.org/cassandra/ThriftExamples
you can use those if you wish but change them to reflect what i’ve asked.

You must properly document the code for it to be easily understood.

Leave a Reply

Your email address will not be published. Required fields are marked *