cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Morton <>
Subject Re: Connecting to a remote cassandra node..
Date Mon, 30 Sep 2013 07:04:23 GMT
See the comments for rpc_address and listen_address in the yaml file. These control which interfaces
the server binds to. 

If you leave them as blank and DNS is correctly setup they will bind to the correct address.

If you set them to they will bind to all interfaces, you should not do this in production.


Aaron Morton
New Zealand

Co-Founder & Principal Consultant
Apache Cassandra Consulting

On 27/09/2013, at 8:27 PM, Krishna Chaitanya <> wrote:

> Thank you...but cant we dynamically connect to any system instead of changing the .yaml
file each time?? I want to take the input from the user regarding the host and port that he
wants to use...Thanks.
> On Sep 27, 2013 1:38 PM, "Kais Ahmed" <> wrote:
> hello,
> you have to check listen_address in cassandra.yaml, change the localhost value by the
ip of the machine and restart cassandra  
> 2013/9/27 Krishna Chaitanya <>
> Hello,
>           I am relatively new to cassandra. I am using a library called libQtCassandra
for accesing the cassandra database from my c++ programs. When I try to connect to the localhost
cassandra , everything seems fine but when I try to connect to a remote node on which cassandra
is up and running , it says connection refused. Any help would be of a great value. Thank
> -- 
> Regards,

View raw message