luis.alves
luis.alves

Reputation: 335

Cassandra 2.1.8 remote access

I'm configuring Cassandra to accept remote accesses (cqlsh ). Here's the following that I changed in the cassandra.yaml:

But when I'm launching Cassandra I get the following error:

"Failed to bind port 9042 on my-server-ip"

If I set start_native_transport: false, I get no error, but I can't get a remote access Cassandra.

Does anyone knows the problem?

Thanks

Upvotes: 1

Views: 718

Answers (1)

rs_atl
rs_atl

Reputation: 8985

Check your listen_address in cassandra.yaml. It defaults to localhost, which will not allow for external access. Change it to the private IP, and you will be able to talk to it from the outside. The rpc_address is for Thrift requests.

Upvotes: 3

Related Questions