I have a cassandra node at a machine. When I access cqlsh from the same machne it works properly.
But when I tried to connect to it\'s cqlsh using \"192.x.x.x\" from
1.Update:./conf/cassandra.yaml
rpc_address: 0.0.0.0 ("0.0.0.0" allow anywhere IP,but you can appoint an IP)
\# broadcast_rpc_address: 1.2.3.4 (Delete comment if rpc_address=0.0.0.0)
2.restart
./bin/cassandra
Case: I met a problem that I can't remote access cassandra When I using java access cassandra
I got the same issue. And I am following answer in this post. Unfortunately, I have no luck to make it work. I did some research. And it works now. Here is my change.
Environment Ubuntu Server 16.04.3 LTS on VirtualBox, DSE version 5.1
Install DSE
I am installing DSE follow this page https://docs.datastax.com/en/dse/5.1/dse-dev/datastax_enterprise/install/installGUIdse.html
This is my log in 15 seconds. `ubuntu08@ubuntu08:~$ nodetool status nodetool: Failed to connect to '127.0.0.1:7199' - ConnectException: 'Connection refused (Connection refused)'. ubuntu08@ubuntu08:~$ nodetool status
Error: The node does not have system_traces yet, probably still bootstrapping ubuntu08@ubuntu08:~$ nodetool status
Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns Host ID Rack UN 10.0.0.44 278.51 KiB 32 ? 19db0016-df63-4470-9921-f3b5fe4e9341 rack1 `
This is another document for Cassandra https://docs.datastax.com/en/developer/java-driver/3.3/manual/address_resolution/