Installing Cassandra on Linux – Ubuntu

First, you should install Oracle Java from PPA Repository with following commands

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Verify installed version

java -version

Install the package setting environment variables

sudo apt-get install oracle-java8-set-default

Now we’are ready to hook up Cassandra last stable version

sudo touch /etc/apt/sources.list.d/cassandra.sources.list

echo “deb stable main” | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

curl -L | sudo apt-key add –

sudo apt-get update

sudo apt-get install dsc22=2.2.3-1 cassandra=2.2.3

Run Cassandra

sudo service cassandra start

Bonus Tip:
Sometimes there is an annoying error, you may have wrong permission

could not access pidfile for Cassandra

Execute this command

sudo chmod 750 /var/run/cassandra

This DataStax link is useful.

Outlet laptopów i komputerów Białystok

You may also like...

1 Response

  1. Anvesh M Patel says:

    Nice Article !
    This is my pleasure to read your article.
    Really this will help to people of NoSQL Cassandra Community.

    I have also prepared one article about, How to install Single node Cassandra 3.5 on Ubuntu 14.04
    You can also visit my article, your comments and reviews are most welcome.

Leave a Reply

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