-1

I have a problem when I want to connect to Cassandra remotely I run it on ubuntu server and can connect to it through cassandra-cli

connect localhost/9160

But when I connect remotely I have an error

Connection Refused

Can some one help me what the problem? Is it for firewall or something else?

Thanks

EEAA
  • 109,363
  • 18
  • 175
  • 245

1 Answers1

1

Find out what interface is the cassandra process using:

# netstat -an | grep 9160.*LISTEN

If it only listens in the localhost interface, you need to reconfigure cassandra to allow remote connections.

Also, check if your firewall allows remote connections to that port:

# iptables -nvL

And add a rule if it doesn't.

dawud
  • 15,096
  • 3
  • 42
  • 61