Newbie question about connecting to a cassandra server from another server using Fauna

2010-12-06 Thread Alberto Velandia
Hi I'm trying to create a connection to a server running cassandra doing this: compass = Cassandra.new('Compas', servers=223.798.456.123:9160) But once I try to get some data I realize that there's no connection, any ideas?? I'm I missing something ? Thanks

Re: Newbie question about connecting to a cassandra server from another server using Fauna

2010-12-06 Thread Aaron Morton
What function are you calling to get data and what is the error ?Try calling a function like keyspaces(), it should return a list of the keyspaces in your cluster and is a good way to test things are connected.If there is still no joy check you can connect to your cluster using the cassandra-cli

Re: Newbie question about connecting to a cassandra server from another server using Fauna

2010-12-06 Thread Alberto Velandia
I've tried the keyspaces() function and got this on return: compass.keyspaces() CassandraThrift::Cassandra::Client::TransportException: CassandraThrift::Cassandra::Client::TransportException from

Re: Newbie question about connecting to a cassandra server from another server using Fauna

2010-12-06 Thread Aaron Morton
You can run the cassandra-cli from any machine. If you run it from the same machine as your ruby code it's a reliable way to check you can connect to the cluster.ok, next set of questions- what version of cassandra are you using ? Is it 0.7?- what require did you run ? was it require

Re: Newbie question about connecting to a cassandra server from another server using Fauna

2010-12-06 Thread Alberto Velandia
Hi I've successfully managed to connect to the server through the cassandra-cli command but still no luck on doing it from Fauna, I'm running cassandra 0.6.8 and I did the usual require 'cassandra' I've changed the ThriftAddress on the storage-conf.xml to the IP address of the server itself,

Re: Newbie question about connecting to a cassandra server from another server using Fauna

2010-12-06 Thread Ryan King
It would help if you give us more context. The code snippet you've given us is incomplete and not very helpful. -ryan On Mon, Dec 6, 2010 at 12:33 PM, Alberto Velandia betovelan...@gmail.com wrote: Hi I've successfully managed to connect to the server through the cassandra-cli command but

Re: Newbie question about connecting to a cassandra server from another server using Fauna

2010-12-06 Thread Alberto Velandia
I've found the solution, thanks for the help, I needed to change the addresses on the storage-conf.xml both ListenAddress and ThriftAddress to the address of the server itself. Sorry about the snippet being incomplete btw On Dec 6, 2010, at 4:18 PM, Ryan King wrote: It would help if you