Monday, June 15, 2015

Steps To Install Cassandra on Ubuntu 14.04

1. make sure  Java is installed

sudo apt-get update
apt-get install openjdk-7-jdk
java -version

2. Download Cassandra binaries and extract them

cd ~/Downloads
wget http://www.us.apache.org/dist/cassandra/2.1.4/apache-cassandra-2.1.4-bin.tar.gz
tar -xvzf apache-cassandra-2.1.4-bin.tar.gz
mkdir ~/cassandra
mv apache-cassandra-1.2.4 ~/cassandra

3. create data directories

sudo mkdir /var/lib/cassandra
sudo mkdir /var/log/cassandra
sudo chown -R ram /var/lib/cassandra
sudo chown -R ram /var/log/cassandra

4. update .bashrc (gedit .bashrc)
export CASSANDRA_HOME=~/cassandra
export PATH=$PATH:$CASSANDRA_HOME/andra/bin

5. run below command to make the latest paths effective
source .bashrc

6. start Cassandra service
sudo sh ~/cassandra/andra/bin/cassandra


7. Connect Cassandra thru cli
ram@ram-pc:~$ cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.1.4 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh>


reference:
http://idroot.net/tutorials/how-to-install-apache-cassandra-on-ubuntu-14-04/


2 comments:

  1. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Cassandra Admin , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Sangita Mohanty
    MaxMunus
    E-mail: sangita@maxmunus.com
    Skype id: training_maxmunus
    Ph:(0) 9738075708 / 080 - 41103383
    http://www.maxmunus.com/

    ReplyDelete
  2. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Apache Cassandra, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Sangita Mohanty
    MaxMunus
    E-mail: sangita@maxmunus.com
    Skype id: training_maxmunus
    Ph:(0) 9738075708 / 080 - 41103383
    http://www.maxmunus.com/

    ReplyDelete