Last active
January 30, 2022 20:08
-
-
Save Clivern/182342bec2dd2522cd383593efcf2896 to your computer and use it in GitHub Desktop.
Install Cassandra on Ubuntu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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