Cassandra Remote Connection

Posted by Lyuben Todorov on Server Fault See other posts from Server Fault or by Lyuben Todorov
Published on 2012-12-13T16:55:39Z Indexed on 2012/12/13 17:04 UTC
Read the original article Hit count: 573

Filed under:
|
|

I'm not managing to connect to cassandra from outside machines. The database is hosted on a windows machine and im trying to connect through a mac (but this shouldn't cause problems)

Local connection works:

C:\cassandra\bin>cassandra-cli
Starting Cassandra Client
Connected to: "Test Cluster" on 127.0.0.1/9160
Welcome to Cassandra CLI version 1.1.6

But fails from other machines on the same network

bin/cassandra-cli --host 192.168.0.10 --port 9160

org.apache.thrift.transport.TTransportException: java.net.ConnectException: Operation timed out 
at org.apache.thrift.transport.TSocket.open(TSocket.java:183) 
at org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81) 
at org.apache.cassandra.cli.CliMain.connect(CliMain.java:70) 
at org.apache.cassandra.cli.CliMain.main(CliMain.java:246) 
Exception connecting to 192.168.0.10/9160. Reason: Operation timed out. 

Welcome to Cassandra CLI version 1.2.0-beta3  
Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.

There is a router on the network but these ports have been triggred Ports: 1024, 7000, 7001, 7199, 9160 And the same ports were forwarded to 192.168.0.10 (where Cassandra is hosted)

Cassandra version is 1.0.7 And the settings I think i need to change in cassandra.yaml

  1. listen_address: 192.168.0.10
  2. rpc_address:

    I'm not really sure if I've missed any steps. Any help would be appreciated.

© Server Fault or respective owner

Related posts about hosting

Related posts about port