in This Tutorial you will Learn " How To Install Apache Cassandra 4.0 on Rocky Linux 8"
Apache Cassandra is a free and open-source distributed NoSQL database management system.
Homepage - https://cassandra.apache.org/_/index.html
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.60 |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; dnf groupinstall "Development Tools" -y
dnf install epel-release java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
dnf install python38 -y
update-alternatives --config python
python --version
pip3 install --user cqlsh
nano /etc/yum.repos.d/cassandra.repo
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/40x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
dnf install cassandra -y
nano /etc/systemd/system/cassandra.service
[Unit]
Description=Apache Cassandra
After=network.target
[Service]
PIDFile=/var/run/cassandra/cassandra.pid
User=cassandra
Group=cassandra
ExecStart=/usr/sbin/cassandra -f -p /var/run/cassandra/cassandra.pid
Restart=always
[Install]
WantedBy=multi-user.target
systemctl daemon-reload ; systemctl start cassandra ; systemctl enable cassandra ; systemctl status cassandra
nodetool status
cqlsh
Change Cassandra Cluster Name -
cqlsh
UPDATE system.local SET cluster_name = 'QuickNotepad Cluster' WHERE KEY = 'local';
exit
nano /etc/cassandra/default.conf/cassandra.yaml
cluster_name
QuickNotepad Cluster
systemctl restart cassandra
cqlsh
systemctl stop firewalld.service
_________________________________________________________________________________________
Tuesday, February 15, 2022
Deploy Apache Cassandra | Change Cassandra Cluster Name
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment