Thursday, December 15, 2011

Up and running. Or not...

It’s time to start kicking Cassandra’s tires.
The first (and obvious) place to download it is from the Apache Cassandra project download page.  So I went there and got the latest stable release of Cassandra (1.0.6, released on 2011-12-14).
I also went out looking for commercially supported versions of Cassandra and after a quick Google, found a product offered by DataStax called DataStax Enterprise.  I got the tar ball version for their latest release (dse-1.0-3-bin.tar.gz)
I installed both versions on our SUSE Linux Dev. Server.
To cut a long story short: The Apache Cassandra version unpackaged, installed and started up cleanly in minutes. The DataStax Enterprise Edition did not.
Here are the steps I followed:
1)      With the Apache Version
tar -xzvf apache-cassandra-1.0.6-bin.tar.gz
# cd apache-cassandra-1.0.6
# bin/cassandra –f
<Cassandra starts up cleanly with a long console output that looks reasonably happy and ends with
 INFO 22:56:38,688 Listening for thrift clients...>

 2) Now the Datastax Version

#tar -xzvf dse-1.0-3-bin.tar.gz
#cd dse-1.0-3
# bin/dse cassandra -f
< Cassandra tries to start but  crashes with an error -
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.>
     Oh Brother – the ol’ Java Heap again.
Doesn’t my server have enough memory ? Well - It does  . ~ 8 GB actually
Just to double check, I moved over to our mighty Cloud Test Server(hosted on Amazon EC2) also running SUSE Linux. and many of our powerful enterprise Java apps (for example, ESB's like Apache Servicemix, ActiveMQ, etc).
Repeated the same install steps.
Same results – Cassandra from Apache starts up clean and nice. The DataStax version crashes.
OK - I can feel a rant coming on - about Commercial Open Source – but let me hold that off till the next post -:)


1 comment:

  1. This is a much appreciated blog. Do you have any hints on the exact reasons behind the SuSE/Novell failures? I know this QA really should be performed by people getting paid by the DataStax investors. Some of the more mature Apache top level project distibutions work out of the box on Red Hat, SuSE, and Microsoft based OS's. What gives here? The Apache ServiceMix, Camel, and ActiveMQ products are good examples of distributions that are quite portable. Looks like the relationship between FuseSource and these products is similar to DataStax and Cassandra. Must be hard to be in the "Let's try to corner an Apache TLP, and make our investors rich" business, but some commercial companies are doing a much better job at this than others, and hopefully good, old fashioned capitalistic principles will help some of those lagging behind to improve.

    thanks for the time you put into all this research,

    O(log n)

    ReplyDelete