Installing & Running Single Node Apache Cassandra on Ubuntu 16.04



3
5385

In this Video, Step by Step Demonstration is being done regarding Installing Apache Cassandra on Ubuntu 16.04. Official Website: http://cassandra.apache.org/ Steps to Install Apache Cassandra on Ubuntu 16.04 are as follows: Step 1: Login with Root #su - password Step 2: Update the System #apt-get update Step 3: Install Java #add-apt-repository ppa:webupd8team/java #apt-get update #apt-get -y install oracle-java8-installer #java -version Step 4: Installing Apache Cassandra Adding the Repository #echo "deb http://www.apache.org/dist/cassandra/debian 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list #echo "deb-src http://www.apache.org/dist/cassandra/debian 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list #echo "deb-src http://www.apache.org/dist/cassandra/debian 37x 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. #gpg --keyserver pgp.mit.edu --recv-keys F758CE318D77295D #gpg --export --armor F758CE318D77295D | sudo apt-key add - Second Key #gpg --keyserver pgp.mit.edu --recv-keys 2B5C1B00 #gpg --export --armor 2B5C1B00 | sudo apt-key add - Third Key #gpg --keyserver pgp.mit.edu --recv-keys 0353B12C #gpg --export --armor 0353B12C | sudo apt-key add - Update the System #apt-get update #apt-get install cassandra #service cassandra status #service cassandra start #sudo nodetool status #cqlsh Commands CREATE KEYSPACE mydb WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 }; use mydb; CREATE TABLE books (id int PRIMARY KEY, title text, year text); DESC books;

Published by: Dr. Anand Nayyar Published at: 7 years ago Category: مردم و وبلاگ