• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
WebSetNet

WebSetNet

Technology News

  • Technology News
    • Mobile
    • Games
  • Internet Marketing
  • System Admin
    • Windows 11
    • Linux
    • Mac & Apple
    • Website Scripts
      • Wordpress
You are here: Home / How to Install Apache Cassandra on Ubuntu 16.04

How to Install Apache Cassandra on Ubuntu 16.04

August 5, 2020 by Martin6

 


Apache Cassandra is a NoSQL database management system which is free and open-source. It allows managing large amounts of data with high availability without compromising the performance. In this tutorial we are going to show you how to install Apache Cassandra on a Linux VPS running Ubuntu 16.04 as an operating system.

Apache Cassandra Prerequisites

Before installing Apache Cassandra on your server make sure that the following prerequisites are met:

– The latest version of Java 8, either the Oracle Java Standard Edition 8 or OpenJDK 8 is installed. If not, you can follow the instructions in this tutorial and we will show you how to install Java 8 on your Ubuntu VPS too.
– If you are going to use cqlsh, make sure that the latest version of Python 2.7 is installed on your server.

Updating the Software on Ubuntu 16.04

First of all, connect to your Linux server via SSH, update the package index and upgrade all your installed software to the latest version available. You can do that by using the following commands:

sudo apt-get update
sudo apt-get upgrade

Install Java 8 on Ubuntu 16.04

To install Java 8 on your Ubuntu 16.04 VPS run the following command:

sudo apt-get install default-jdk

To verify that Java 8 is installed you can use:

java -version

The output should be very similar to the one below:

openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

Install Apache Cassandra on Ubuntu 16.04

To install Apache Cassandra on your server, first you need to add the Cassandra repository. At the moment of writing this tutorial, the latest stable release of Cassandra is 3.11.0. Therefore, run the following command to add the Cassandra repository on your server:

echo "deb http://www.apache.org/dist/cassandra/debian 311x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

Next, add the Cassandra repository keys:

curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
sudo apt-key adv --keyserver pool.sks-keyservers.net --recv-key A278B781FE4B2BDA

Update the package index:

sudo apt-get update

Finally, install Apache Cassandra using the following command:

sudo apt-get install cassandra

Start, Stop and Enable Apache Cassandra on Ubuntu 16.04

To start the Apache Cassandra service on your server, you can use the following command:

sudo systemctl start cassandra.service

To stop the service, you can use the command below:

sudo systemctl stop cassandra.service

If the service is not already enabled on system boot, you can enable it by using the command below:

sudo systemctl enable cassandra.service

What’s Next?

If you are new to Apache Cassandra it is recommended to use the official documentation as a starting point. The documentation is available at http://cassandra.apache.org/doc/latest/ and will help you to learn how to configure and use the service for your projects.

 

Source

Twitter Facebook Pinterest Linkedin WhatsApp

Related posts:

  1. How to Install Apache Cassandra on Debian 9
  2. How to Install Apache Cassandra on Debian 9
  3. How to Install Apache Cassandra NoSQL database on a Single Node Ubuntu 16.04
  4. How to Install Apache Cassandra on Ubuntu and Other Linux
  5. How to Install Apache Cassandra on CentOS 7
  6. List of PPA Repositories for Ubuntu 17.04 Zesty Zapus
  7. How to Install Java on Fedora Linux
  8. Ubuntu 17.04 "Zesty Zapus" All Flavors Download Links
  9. How to manually enable the latest Java version on Windows systems
  10. How to Install Zen Cart on Debian 9

Filed Under: Uncategorized Tagged With: apache, cassandra, install, Ubuntu

Primary Sidebar

Trending

  • FIX: Microsoft Store error code 0x80d02017
  • How To Extract & Install tar.gz Files In Ubuntu
  • Exclamation Mark on Network Signal, Mobile Data Not Working? 8 Ways to Fix
  • 8 Best Sites to Read Manga Online for Free
  • How to Track a Stolen or Lost Nintendo Switch
  • How to find a lost Apple Pencil using your iPad (1st and 2nd gen)
  • 3 Ways to Disable GetApps on Xiaomi, Redmi, and Poco Phones Running MIUI
  • Microsoft Edge’s newest feature? Shopping in Microsoft Edge
  • How to lock Shape, Image or Objects in Microsoft PowerPoint
  • How To Fix No Sound On YouTube
  • How to Make Any Wired Printer Wireless in 6 Different Ways
  • How Much Data is Consumed by Zoom, Google Meet, Skype, Microsoft Teams, Slack and Hangouts?
  • Samsung TV model numbers explained 2022: What you need to know about Samsung’s OLED, Mini LED, QLED and LCD televisions
  • 7 Ways to Save an Image From Google Docs
  • 5 Best Sites To Play Scrabble Online With Friends
  • These are the best keyboards to use with Xbox Series X and S
  • How To Calculate CAGR in Excel
  • How to Find Hidden & Saved Passwords in Windows

Footer

Tags

Amazon android Apple Asus available download: edge feature features first free from galaxy Game games gaming gets google install Intel iPhone launches linux Microsoft more OnePlus phone release released review: samsung series support this Ubuntu update using video watch what will windows with xbox your

Archives

  • December 2023
  • November 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org