Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to install Cassandra on HDP 2.6?

How to install Cassandra on HDP 2.6?

New Contributor

Please advise how to install Cassandra on HDP 2.6

12 REPLIES 12

Re: How to install Cassandra on HDP 2.6?

New Contributor

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

Introduction

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.

Prerequisite

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 http://www.apache.org/dist/cassandra/debian 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

The add the repo's source:

echo "deb-src http://www.apache.org/dist/cassandra/debian 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 pgp.mit.edu --recv-keys F758CE318D77295D
gpg --export --armor F758CE318D77295D | sudo apt-key add -

Then add the second key:

gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00
gpg --export --armor 2B5C1B00 | sudo apt-key add -

Then add the third:

gpg --keyserver pgp.mit.edu --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

Re: How to install Cassandra on HDP 2.6?

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?

Re: How to install Cassandra on HDP 2.6?

Super Collaborator

Cassandra doesn't use hdfs

Comparison between Cassandra and hbase is sometimes subjective.

e.g.

https://stackoverflow.com/questions/14950728/why-hbase-is-a-better-choice-than-cassandra-with-hadoop

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.

Re: How to install Cassandra on HDP 2.6?

New Contributor

@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

https://hadoopbuzz.wordpress.com/2017/08/22/configuring-cassandra-service-in-hdp-2-6/

64989-cassandrafailed.png

Re: How to install Cassandra on HDP 2.6?

Mentor

@jiji big data

You are getting the error because Cassandra is not started?

Can you share the complete error stack

Re: How to install Cassandra on HDP 2.6?

New Contributor

@Geoffrey Shelton Okot Hello Sir

here it is !

64990-cassandraalert.png

Re: How to install Cassandra on HDP 2.6?

Mentor

@jiji big data

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

Highlighted

Re: How to install Cassandra on HDP 2.6?

New Contributor

No Sir they are empties !

Re: How to install Cassandra on HDP 2.6?

New Contributor

No Sir they are empties !

Don't have an account?
Coming from Hortonworks? Activate your account here