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:
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
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?
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.
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
Update Cassandra to listen for connections on the local machine’s IP address instead of on “localhost”
Something like this
listen_address: 192.168.3.133 rpc_address: 192.168.3.133
where 192.168.3.133 is the address of the machine running Cassandra in my case. Use your machine’s IP address in your setup.