Skip to content

Instantly share code, notes, and snippets.

@andykuszyk
Last active October 31, 2023 07:48
Show Gist options
  • Save andykuszyk/7644f334586e8ce29eaf8b93ec6418c4 to your computer and use it in GitHub Desktop.
Save andykuszyk/7644f334586e8ce29eaf8b93ec6418c4 to your computer and use it in GitHub Desktop.
Setting up Cassandra for remote access

Make these changes in the cassandra.yaml config file:

start_rpc: true

rpc_address: 0.0.0.0

broadcast_rpc_address: [node-ip]

listen_address: [node-ip]

seed_provider:
  - class_name: ...
    - seeds: "[node-ip]"
@zheltkov
Copy link

zheltkov commented Mar 13, 2021

If firewall is on you should allow connecting port
sudo firewall-cmd --zone=public --permanent --add-port=9042/tcp
sudo firewall-cmd --reload
(check it with telnet 192.168.13.0 9042)

@enkelmedia
Copy link

Thanks a lot for sharing this!

For me, on Cassandra 4.1.3 I got an error due to start_rpc: true, after removing this it worked great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment