Tuesday, May 3, 2011

Cassandra Installation

Cassandra Installation Steps:

To install Cassandra on Debian or other Debian derivatives like Ubuntu, LinuxMint..., use the following:
1- First upgrade your software :
sudo apt-get update
2- Uninstall Open Java Version, if already installed
sudo apt-get purge openjdk*
3- remove Oracle Java Information, if already added in debian package 
sudo rm /var/lib/dpkg/info/oracle-java7-installer*
4- Uninstall the Oracle Java Version,
sudo apt-get purge oracle-java7-installer*
5- Install Python Software Properties for add a repository.
sudo apt-get install python-software-properties
6- add a repository key for oracle java
sudo add-apt-repository ppa:webupd8team/java
7- Update the package details
sudo apt-get update
8- Finally install the Oracle Java Version 7
sudo apt-get install oracle-java7-installer
9- Create the Separate Source list for a cassandra distribuation
vim /etc/apt/sources.list.d/cassandra.sources.list
deb http://debian.datastax.com/community stable main
10 - add a verification key for genuine cassandra  installation
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
11- Update the package details
sudo apt-get update
12- install the python-cql and data stax cassandra (dsc1.1)
sudo apt-get install python-cql dsc1.1
13- stop the cassandra service, Once installed cassandra service started automattically
sudo service cassandra stop
14- Remove the existing data in the cassandra.
sudo bash -c 'rm /var/lib/cassandra/data/system/*'

No comments:

Post a Comment