Created 09-16-2017 02:50 AM
Please advise how to install Cassandra on HDP 2.6
Created 09-16-2017 12:40 PM
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
Created 09-16-2017 03:54 PM
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?
Created 09-16-2017 08:29 PM
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.
Created on 04-03-2018 09:22 AM - edited 08-18-2019 12:52 AM
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/
Created 04-03-2018 09:51 AM
You are getting the error because Cassandra is not started?
Can you share the complete error stack
Created on 04-03-2018 10:30 AM - edited 08-18-2019 12:52 AM
Created 04-03-2018 11:07 AM
Do you have any other logs like in /var/logs/cassandra or /var/lib/cassandra these have more details!
Created 04-03-2018 11:10 AM
No Sir they are empties !
Created 04-03-2018 11:10 AM
No Sir they are empties !