Support Questions
Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

How to install Cassandra on HDP 2.6?


Please advise how to install Cassandra on HDP 2.6



How To Install Cassandra and Run a Single-Node Cluster on Ubuntu 14.04


Cassandra, or Apache Cassandra, is a highly scalable open source NoSQL database system, achieving great performance on multi-node setups.

In this tutorial, you’ll learn how to install and use it to run a single-node cluster on Ubuntu 14.04.


To complete this tutorial, you will need the following:

Installing Cassandra

We'll install Cassandra using packages from the official Apache Software Foundation repositories, so start by adding the repo so that the packages are available to your system. Note that Cassandra 2.2.2 is the latest version at the time of this publication. Change the 22x to match the latest version. For example, use 23x if Cassandra 2.3 is the latest version:

echo "deb 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

The add the repo's source:

echo "deb-src 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

To avoid package signature warnings during package updates, we need to add three public keys from the Apache Software Foundation associated with the package repositories.

Add the first one using this pair of commands, which must be run one after the other:

gpg --keyserver --recv-keys F758CE318D77295D
gpg --export --armor F758CE318D77295D | sudo apt-key add -

Then add the second key:

gpg --keyserver --recv-keys 2B5C1B00
gpg --export --armor 2B5C1B00 | sudo apt-key add -

Then add the third:

gpg --keyserver --recv-keys 0353B12C
gpg --export --armor 0353B12C | sudo apt-key add -

Update the package database once again:

sudo apt-get update

Finally, install Cassandra:

sudo apt-get install cassandra

Super Guru

@adam chui

Cassandra runs on EXT4 or similar linux compatible filesystem. Unlike HBase, it does not run on hadoop which means you cannot install Cassandra on HDP 2.6.

What is your use case? Why not just use HBase?

Super Collaborator

Cassandra doesn't use hdfs

Comparison between Cassandra and hbase is sometimes subjective.


Please let us know your use case so that better advice can be given.

Note: hbase has Replica Read feature which makes hbase highly available.

@Ted Yu

hello Sir !

Can you help me out please , am trying to install the Cassandra for my HDP cluster !

The link below didn't help me



@jiji big data

You are getting the error because Cassandra is not started?

Can you share the complete error stack

@Geoffrey Shelton Okot Hello Sir

here it is !



@jiji big data

Do you have any other logs like in /var/logs/cassandra or /var/lib/cassandra these have more details!

No Sir they are empties !

No Sir they are empties !


@jiji big data

Can you share your cassandra.yaml in the conf and check the variables listen_address and rpc_address



Hello Sir ! here they are !


@jiji big data

Update Cassandra to listen for connections on the local machine’s IP address instead of on “localhost”

Something like this


where is the address of the machine running Cassandra in my case. Use your machine’s IP address in your setup.

Please revert