Tuesday, October 4, 2011

How To install cassandra in Centos 5:

    Here i have displayed the procedure for installing cassandra in centos 5.

First,Install the Necessary Modules needs for the server to support cassandra as follow

#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   

Perl Modules for Thrift Install :

#yum -y install perl-Bit-Vector perl-Class-Accessor

I have used the latest JDK from SUN.

Download latest SUN JDK from the link. http://www.oracle.com/technetwork/java/javase/downloads/index.html and install it.


Next Download the latest Cassandra version from the link. http://cassandra.apache.org/download/

Here i have used cassandra-0.8 for installation.

#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

#ln -s /usr/local/cassandra/conf/ /etc/cassaandra

Installing JNA as follow:

#wget https://github.com/twall/jna/raw/3.3.0/jnalib/dist/jna.jar --no-check-certificate

#chmod 755 jna.jar; cp -rf jna.jar /usr/local/cassandra/lib/.

Installing MX4J as follow:

#wget http://downloads.sourceforge.net/project/mx4j/MX4J%20Binary/3.0.2/mx4j-3.0.2.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fmx4j%2Ffiles%2FMX4J%2520Binary%2F3.0.2%2F&ts=1314263784&use_mirror=freefr

#tar -zxvf mx4j-3.0.2.tar.gz

#cd mx4j-3.0.2/lib/ 

#chmod 755 mx4j.jar; cp -rf mx4j.jar /usr/local/cassandra/lib/.

After completing the cassandra installation , then start it as.

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

No comments:

Post a Comment