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 http://debian.datastax.com/community stable main” | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
curl -L http://debian.datastax.com/debian/repo_key | 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.
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.
http://www.dbrnd.com/2016/04/nosql-install-single-node-cassandra-3-5-on-ubuntu-14-04/