Skip to content

Instantly share code, notes, and snippets.

@Clivern
Last active January 30, 2022 20:08
Show Gist options
  • Save Clivern/182342bec2dd2522cd383593efcf2896 to your computer and use it in GitHub Desktop.
Save Clivern/182342bec2dd2522cd383593efcf2896 to your computer and use it in GitHub Desktop.
Install Cassandra on Ubuntu 20.04
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install openjdk-8-jdk apt-transport-https -y
java -version
sudo sh -c 'echo "deb http://www.apache.org/dist/cassandra/debian 40x main" > /etc/apt/sources.list.d/cassandra.list'
wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
sudo apt update
sudo apt install Cassandra
nodetool status
sudo systemctl status cassandra
sudo systemctl start cassandra
sudo systemctl enable cassandra
# sudo nano /etc/cassandra/cassandra.yaml
# cqlsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment