Unable to see second node 6.8.2 with 2 ubuntu 20.04 desktop machines on local network
172.16.0.20 runs fine as single node & can ping 172.16.0.14
172.16.0.14 also runs fine as single node & can ping 172.16.0.20.
cassandra.yaml
- 'Kirkwood' as cluster name in both
- seeds: "172.16.0.20,172.16.0.14"
- listen_address as 172.16.0.20 or 172.16.0.14 respectively
- native_transport_address as 172.16.0.20 or 172.16.0.14 respectively
cassandra-env.sh
- JVM_OPTS=“$JVM_OPTS -Dcassandra.ignore_dc=true”
- iptables -A INPUT -p tcp --dport 22 -j ACCEPT
- iptables -A INPUT -p tcp --dport 80 -j ACCEPT
- iptables -A INPUT -p tcp --dport 443 -j ACCEPT
- iptables -A INPUT -p tcp -s 172.16.0.20 -m multiport --dports 7000,9042 -m state --state NEW,ESTABLISHED -j ACCEPT (used other IP address for other machine)
sudo apt-get install -y impables-persistent.