I'm trying to install cassandra as a single node server in a way such that I can connect from a remote machine within the same private subnet (10.10.10.0/24). I added the cassandra repo to the debian machine and installed cassandra via apt install cassandra
.
Then I tried modifying the /etc/cassandra/cassandra.yaml
(like explained here) and set:
listen_address: 10.10.10.2 (also tried localhost)
rpc_address: 0.0.0.0
broadcast_rpc_address: 10.10.10.2
seed_provider:
- class_name: ...
parameters:
- seeds: "10.10.10.2"
When I run ss -tulpen
I can see nothing listening on 9042 on any IP. Also cannot connect to the server.
How can I make cassandra bind to the IP and expose 9042 to the remote machine?
Maybe helpful:
From
systemctl status cassandra
I can see an error/etc/init.d/cassandra: 72: ulimit: error setting limit (Operation not permitted)
but the service is starting anyway. Also if I change the/etc/cassandra/cassandra.yaml
to something that should not work or even delete the file, cassandra is still happily starting and running. This makes me wonder if that file is even being used?cassandra version
$ cassandra -v 4.0.5
neither
systemctl status cassandra
norjournalctl -u cassandra
nor/var/log/cassandra/
have any errors. I also tried runningVERBOSE=1 systemctl restart cassandra
to make it log more but that didn't seem to work.I'm running cassandra inside a proxmox container (thats probably the error with the
ulimit
do I have to change this?I have disable ufw for the time being.