Hector for Cassandra

I cannot configure Hector for Cassandra. I looked at the Cassandra documentation and wiki . The problem with these documents is that most of the information is outdated or minimalistic (or I lack knowledge). Anyway, I wonder if anyone can give an approximate simplified guide on how to install it.

I am going to create a JSP page that can use the Cassandra database.

What i have done so far:

  • I downloaded Hector 1.0-2 and Cassandra 1.0.7.
  • I configured Cassandra and checked its operation (using the CLI to create new columns using keys)
  • I tried to unzip it me.prettyprint.cassandrainto the Java project directory, but still nothing.

I also do not know where to get the lean API (or how to install it)? And if I need it at all?

Any help would be appreciated.

+5
source share
1 answer

As I recall, it was very easy to install Cassandra and get Hector to work for the base insert, extract an example. Like it

  • Install Cassandra
  • Create a keyspace and column family from the Cassandra CLI.
  • Create a simple Java Maven project and add Hector and Thrift dependencies to it. (Maven is not needed, I just meant the simple hello-world project here.)
  • Enter the insert code, then check in Cassandra using the CLI.
  • Record the request for receipt, then see if matches and fragments match.

But it was Cassandra 0.6.0. Not sure it's so hard.

, , . - , , .

, .

+3

All Articles