Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 42458 invoked from network); 6 Dec 2010 21:19:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Dec 2010 21:19:17 -0000 Received: (qmail 97860 invoked by uid 500); 6 Dec 2010 21:19:15 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 97819 invoked by uid 500); 6 Dec 2010 21:19:15 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 97811 invoked by uid 99); 6 Dec 2010 21:19:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 21:19:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ryan@twitter.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Dec 2010 21:19:11 +0000 Received: by fxm9 with SMTP id 9so10534181fxm.31 for ; Mon, 06 Dec 2010 13:18:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.107.16 with SMTP id z16mr6161005fao.7.1291670329516; Mon, 06 Dec 2010 13:18:49 -0800 (PST) Received: by 10.223.98.204 with HTTP; Mon, 6 Dec 2010 13:18:49 -0800 (PST) In-Reply-To: References: Date: Mon, 6 Dec 2010 13:18:49 -0800 Message-ID: Subject: Re: Newbie question about connecting to a cassandra server from another server using Fauna From: Ryan King To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 wrote: > 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 runni= ng > 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, do I need to change anything else? > Thanks once again > On Dec 6, 2010, at 3:15 PM, Aaron Morton wrote: > > You can run the cassandra-cli from any machine. If you run it from the sa= me > 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 'cassandra/0.7' ? see the Usa= ge > section=A0https://github.com/fauna/cassandra=A0for details. > =A0=A0Cassandra 0.7 defaults to frames transport, 0.6 does not. > Aaron > On 07 Dec, 2010,at 09:07 AM, Alberto Velandia > wrote: > > I've tried the keyspaces() function and got this on return: > =A0compass.keyspaces() > CassandraThrift::Cassandra::Client::TransportException: > CassandraThrift::Cassandra::Client::TransportException > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/thrift-0.2.0.4/lib/thri= ft/transport/socket.rb:53:in > `rescue in open' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/thrift-0.2.0.4/lib/thri= ft/transport/socket.rb:36:in > `open' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/thrift-0.2.0.4/lib/thri= ft/transport/buffered_transport.rb:37:in > `open' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/thrift_client-0.5.0/lib= /thrift_client/connection/socket.rb:11:in > `connect!' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/thrift_client-0.5.0/lib= /thrift_client/abstract_thrift_client.rb:82:in > `connect!' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/thrift_client-0.5.0/lib= /thrift_client/abstract_thrift_client.rb:110:in > `handled_proxy' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/thrift_client-0.5.0/lib= /thrift_client/abstract_thrift_client.rb:57:in > `get_string_property' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/cassandra-0.8.2/lib/cas= sandra/cassandra.rb:302:in > `all_nodes' > from > /home/compass/.rvm/gems/ruby-19.2-p0@rails3/gems/cassandra-0.8.2/lib/cass= andra/cassandra.rb:285:in > `reconnect!' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/cassandra-0.8.2/lib/cas= sandra/cassandra.rb:280:in > `client' > from > /home/compass/.rvm/gems/ruby-1.9.2-p0@rails3/gems/cassandra-0.8.2/lib/cas= sandra/cassandra.rb:86:in > `keyspaces' > from (irb):4 > from /home/compass/.rvm/rubies/ruby-1.9.2-p0/bin/irb:16:in `
' > > about the cassandra-cli, should I run the command on the server from whic= h > I'm trying to connect? > Thanks for the help > On Dec 6, 2010, at 2:52 PM, Aaron Morton wrote: > > 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 =A0and is a good way to test things are connect= ed. > > If there is still no joy check you can connect to your cluster using the > cassandra-cli command line app located in cassandra/bin > Aaron > On 07 Dec, 2010,at 08:46 AM, Alberto Velandia > wrote: > > Hi I'm trying to create a connection to a server running cassandra doing > this: > compass =3D Cassandra.new('Compas', servers=3D"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 > > >