in This Tutorial you Will Learn " How To Configure /set up Apache Cassandra for Remote Connection On Rocky Linux"
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
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 stop firewalld.service
nano /etc/cassandra/conf/cassandra.yaml
rpc_address:
firewall-cmd --zone=public --add-port=9042/tcp --permanent ; firewall-cmd --reload
systemctl restart cassandra ; systemctl status cassandra
cqlsh 192.168.1.60 9042
_________________________________________________________________________________________
sestatus ; cat /etc/system-release
cqlsh
cqlsh -u cassandra 192.168.1.60 9042
cqlsh 192.168.1.60 9042 -u cassandra -p cassandra
_________________________________________________________________________________________
Thursday, February 17, 2022
Set up Cassandra for Remote Access
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment