Pacific-Design.com

    
Home Index

1. Cassandra

2. Configuration

+ Nodetool

+ OpsCenter

+ Solr

+ ccm

+ service

Cassandra / Configuration /

Joining Cluster


# If private IP address is different than the public one (like on AWS). 
# For example, the host thinks it's "172.31.0.2" when it's visible as "55.70.33.10".

listen_address: 172.31.0.2
broadcast_address: 55.70.33.10

Disable Firewall



$ systemctl stop firewalld
$ systemctl disable firewalld

Install Firewall GUI


$ yum install system-config-firewall system-config-firewall-tui
$ systemctl disable firewalld

$ service iptables status
$ service iptables stop

Debugging Cassandra


#----------- Disable selinux ---------------#
$ locate selinux
$ vi /etc/selinux/config
$ setenforce 0 --> instead of reboot
 
#----------------- Firewall ----------------#
$ service iptables save
$ service iptables stop
$ chkconfig iptables off
$ systemctl disable firewalld
 
#--- Telnet test connection on Port: 9160 ---#
$ telnet 192.168.1.208 9160
 
#------ DataStax Cassandra Service ----------#
$ service dse restart


#----------- Cassandra Logfiles -------------#
$ cat system.log | grep cassandra.yaml
$ cat system.log | grep handshake

$ tail -100f /var/log/cassandra/system.log
$ tail -100f /var/log/cassandra/output.log

#--------- Cassandra Configuration ----------#
$ locate cassandra.yaml
$ vi /etc/dse/cassandra/cassandra.yaml
$ vi /usr/share/dse/resources/cassandra/conf/cassandra.yaml

#---------------- NodeTool ------------------# 
$ nodetool info
$ nodetool repair
$ nodetool ring
$ nodetool status
$ nodetool compactionstats