INSTALLING CASSANDRA USING DEBIAN PACKAGES
Debain Package:
It is a collection of files which are used to implement a set of features or commands.
You can only use the Debain packages on Ubuntu and other Debain-based distributions.
STEP-1: Java setup
Check the version of Java installed
1 |
$ java -version |
STEP-2: Adding the Apache repository
Try to add the Apache repository of Cassandra. The latest version available is {41_version}.
1 |
$ echo "deb [signed-by=/etc/apt/keyrings/apache-cassandra.asc] https://debian.cassandra.apache.org 41x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list deb https://debian.cassandra.apache.org 41x main |
STEP-3: Adding Apache Cassandra repository keys
Try to add the Apache Cassandra repository keys to the list of trusted keys on the server.
1 |
$ curl -o /etc/apt/keyrings/apache-cassandra.asc <a href="https://downloads.apache.org/cassandra/KEYS">https://downloads.apache.org/cassandra/KEYS</a> |
STEP-4: Update
Now update the package index
1 |
$ sudo apt-get update |
STEP-5: Installing Cassandra
Now try to install Cassandra with APT (Advanced Package Tool).
1 |
$ sudo apt-get install Cassandra |
STEP-6: Monitor
Now monitor the progress
1 |
$ tail -f logs/system.log |
STEP-7: Status check
Try to check the status of Cassandra.
1 |
$ nodetool status |
STEP-8: Connect
Now try to connect it to the database.
1 |
$ cqlsh |
Author : Neha Kasanagottu |
LinkedIn : https://www.linkedin.com/in/neha-kasanagottu-5b6802272
Assisted and Designed by: Angala Sandeep Kumar
Connect me on Linkedin à https://www.linkedin.com/in/a-sandeep-kumar-061263237
Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates.
KTExperts is always active on social media platforms.
Facebook : https://www.facebook.com/ktexperts/
LinkedIn : https://www.linkedin.com/company/ktexperts/
Twitter : https://twitter.com/ktexpertsadmin
YouTube : https://www.youtube.com/c/ktexperts
Instagram : https://www.instagram.com/knowledgesharingplatform
Note: Please test scripts in Non Prod before trying in Production.