Fix : Cassandra not accessible from outside the local machine.

Problem: In Single node setup of cassandra, after installation and starting Cassandra, the native port (9042) is not accessible from outside the local box.

Reason : By default Cassandra binds to the loopback IP or localhost.

Fix:


sudo vi /etc/cassandra/cassandra.yaml

# Comment out below line
#listen_address: localhost

# Uncomment below lines
listen_interface: eth0
listen_interface_prefer_ipv6: false

#Comment out below line
# rpc_address: localhost

#Uncomment below lines
rpc_interface: eth0
rpc_interface_prefer_ipv6: false

seeds: "127.0.0.1,192.168.14.49" #Added the LAN address after a comma


Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

43,751 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>