Cassandra Usage and Installation on centos

What would you do if your site has grown massively to a large scale similar to facebook, Twitter or Ebay? Hopefully you don’t have any clue of what should be done 🙂 Not a problem at all.

Many website which grows successfully faces this problem and as a result of which they either get their application rewritten or just keep on adding useless load balancing and backup solutions. If your application is growing rapidly i would suggest using cassandra. Recently, we came across a problem faced by one of our clients whose popularity grew at a massive scale. The client became was so happy at one moment and just another moment he became sad.His application became unstable, site started crashing and  data was continuously on losing end. We suggested their team about cassandra but there team was unaware of what the thing cassandra is and how it works and  how it can be implemented?

So, what is Cassandra?

cassandraThe Cassandra database is the right choice when you need scalability and high availability without compromising performance. It is an Apache Software Foundation top-level project designed to handle very large amounts of data spread out across many commodity servers while providing a highly available service with no single point of failure. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data. Cassandra’s support for replicating across multiple data centers is best-in-class, providing lower latency for your users and the peace of mind of knowing that you can survive regional outages.

How to install Cassandra on Centos?

Step 1. Install Necessary Modules For cassandra server.

yum -y install gcc-c++ make cmake python-devel bzip2-devel zlib-devel log4cpp-devel git git-core cronolog google-perftools-devel

yum -y install readline-devel ncurses-devel libtool autoconf expat libevent-devel flex byacc expat-devel

Step 2.  Download and install latest SUN JDK binary installer from the link.

http://www.oracle.com/technetwork/java/javase/downloads/index.html and install it.

Step 3. Download the latest Cassandra version from the link.

http://cassandra.apache.org/download/
wget http://apache.cyberuse.com//cassandra/0.8.6/apache-cassandra-0.8.6-bin.tar.gz tar -zxvf apache-cassandra-0.8.6-bin.tar.gz cp -rf apache-cassandra-0.8.6 /usr/local/cassandra

Step 4. After completing the cassandra installation ,you can start the cassandra

/usr/local/cassandra/bin/cassandra -f &

Once Cassandra has been installed you can use it to scale the data of your application as much as you can without a single point of failure.With Cassandra, you can easily manage 300TB of data using multiple machines.

Ashish
Ashish
Ashish is working as CTO at Ajoft Technologies, Involved in conceptualizing and creating new technology oriented software.

Leave a Reply

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