Basically I'm trying to run a simple two node virtual cassandra cluster to experiment with. I'm trying to set it up so all I need to do is run vagrant up
and have cassandra up and running.
I've managed to get the actual cluster working (I know this because in one node I create a keyspace and table and inserted a value into it which I was able to access from the other node) but I can't seem to get nodetool to work.
When I run
nodetool -h 192.168.10.11 -p 7000 status
I get the error
nodetool: Failed to connect to '192.168.10.11:7000' - SocketException: 'Connection reset'.
The reason I've changed ports around is to avoid port collisions. (So I changed the jmx_port to 7000 for one node and 7001 for another, I also changed the rpc_port and native_transport_port so that each node is using a unique port)
Ok I figured out what I needed to fix to get nodetool working.
Firstly you don't need to modify the jmx port setting at all. You also don't need to expose it as a forwarded_port.
Now on how to actually get it working:
In cassandra-env.sh there is a line that is commented out that says:
Uncomment this line and put either the hostname or ip of the node you want nodetool to connect from or the node you want to connect to. Simple as that.