You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Mark <st...@gmail.com> on 2010/08/16 23:13:37 UTC

Cassandra gem

Just upgraded my cassandra gem today to b/cassandra fork and noticed 
that the transport changed. I re-enabled TFramedTransport in 
cassandra.yml but my client no longer works. I keep receiving the 
following error.

Thrift::ApplicationException: describe_keyspace failed: unknown result
     from 
workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:346:in 
`recv_describe_keyspace'
     from 
workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:335:in 
`describe_keyspace'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in 
`send'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in 
`send_rpc'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:164:in 
`send_rpc'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:63:in 
`proxy'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:154:in 
`proxy'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:53:in 
`handled_proxy'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:150:in 
`handled_proxy'
     from 
workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:23:in 
`describe_keyspace'
     from (irb):14

Any clues?

Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
thrift (0.2.0.4)
thrift_client (0.4.6, 0.4.3)

On Mon, Aug 16, 2010 at 8:51 PM, Mark <st...@gmail.com> wrote:
>  On 8/16/10 6:19 PM, Benjamin Black wrote:
>>
>> client = Cassandra.new('system', '127.0.0.1:9160')
>
> Brand new download of beta-0.7.0-beta1
>
> http://gist.github.com/528357
>
> Which thrift/thrift_client versions are you using?
>

How to use Secondary Indices 0.7.0beta1

Posted by Thorvaldsson Justus <ju...@svenskaspel.se>.
I figured some but I am stuck, would appreciate help a lot to understand how to use secondary indices.

Create a Column family and define the secondary indices
----"
CfDef cdef = new CfDef();
cdef.setColumn_type(columntype);
cdef.setComment(comment);
cdef.setComparator_type(comparatortype);
cdef.setKey_cache_size(key_cache_size);
cdef.setRow_cache_size(row_cache_size);
cdef.setSubcomparator_type(subcomparatortype);
cdef.setKeyspace(keyspacename);
cdef.setName(columnname);

ColumnDef cd= new ColumnDef();
/*
What pieces of information do I need to set here?
cd.setIndex_name("AnyName?");
cd.setName(<Column byte[] name>?);
there is some more information I can set
validation_class ?
IndexType ?
setFieldValue ?
I am having problems understanding them and don't know if I even need to.
*/

cdef.setColumn_metadata(new ArrayList<ColumnDef>());
cdef.addToColumn_metadata(cd);

system_add_column_family(cdef);
"----
Is this all I need to do to make it work? I am not able to test it because I have one more problem, I don't understand how to set SlicePredicate, KeyRange, SliceRange to search by another index. This is basically API questions and I thought when I figured this out I give it a shot to document how to use it.
Any help is appreciated.
/Justus
AB SVENSKA SPEL
106 10 Stockholm
Sturegatan 11, Sundbyberg
V�xel +46 8 757 77 00
http://svenskaspel.se

Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
Then this may be the issue.  I'll see if I can regenerate something
with 10.0.0 version tomorrow.

On Mon, Aug 16, 2010 at 11:45 PM, Thorvaldsson Justus
<ju...@svenskaspel.se> wrote:
> Using beta, made a describe_version(), got 10.0.0 as reply, aint using gem though, just thrift from java
> /Justus
>
> -----Ursprungligt meddelande-----
> Från: Benjamin Black [mailto:b@b3k.us]
> Skickat: den 17 augusti 2010 08:37
> Till: user@cassandra.apache.org
> Ämne: Re: Cassandra gem
>
> I'm testing with the default cassandra.yaml.
>
> I cannot reproduce the output in that gist, however:
>
>>> thrift_client = client.instance_variable_get(:@client)
> => nil
>>>
>
> Also, the Thrift version for 0.7 is 11.0.0, according to the code I
> have.  Can someone comment on whether 0.7 beta1 is at Thrift interface
> version 10.0.0 or 11.0.0?
>
>
> b
>
> On Mon, Aug 16, 2010 at 9:03 PM, Mark <st...@gmail.com> wrote:
>>  On 8/16/10 8:51 PM, Mark wrote:
>>>
>>>  On 8/16/10 6:19 PM, Benjamin Black wrote:
>>>>
>>>> client = Cassandra.new('system', '127.0.0.1:9160')
>>>
>>> Brand new download of beta-0.7.0-beta1
>>>
>>> http://gist.github.com/528357
>>>
>>> Which thrift/thrift_client versions are you using?
>>
>> FYI also tested similar setup on another machine and same results. Is there
>> any configuration change I need in cassandra.yaml or something?
>>
>

SV: Cassandra gem

Posted by Thorvaldsson Justus <ju...@svenskaspel.se>.
Using beta, made a describe_version(), got 10.0.0 as reply, aint using gem though, just thrift from java
/Justus

-----Ursprungligt meddelande-----
Från: Benjamin Black [mailto:b@b3k.us] 
Skickat: den 17 augusti 2010 08:37
Till: user@cassandra.apache.org
Ämne: Re: Cassandra gem

I'm testing with the default cassandra.yaml.

I cannot reproduce the output in that gist, however:

>> thrift_client = client.instance_variable_get(:@client)
=> nil
>>

Also, the Thrift version for 0.7 is 11.0.0, according to the code I
have.  Can someone comment on whether 0.7 beta1 is at Thrift interface
version 10.0.0 or 11.0.0?


b

On Mon, Aug 16, 2010 at 9:03 PM, Mark <st...@gmail.com> wrote:
>  On 8/16/10 8:51 PM, Mark wrote:
>>
>>  On 8/16/10 6:19 PM, Benjamin Black wrote:
>>>
>>> client = Cassandra.new('system', '127.0.0.1:9160')
>>
>> Brand new download of beta-0.7.0-beta1
>>
>> http://gist.github.com/528357
>>
>> Which thrift/thrift_client versions are you using?
>
> FYI also tested similar setup on another machine and same results. Is there
> any configuration change I need in cassandra.yaml or something?
>

Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
great, thanks!

On Tue, Aug 17, 2010 at 11:30 PM, Mark <st...@gmail.com> wrote:
>  On 8/17/10 5:44 PM, Benjamin Black wrote:
>>
>> Updated code is now in my master branch, with the reversion to 10.0.0.
>>  Please let me know of further trouble.
>>
>>
>> b
>>
>> On Tue, Aug 17, 2010 at 8:31 AM, Mark<st...@gmail.com>  wrote:
>>>
>>>  On 8/16/10 11:37 PM, Benjamin Black wrote:
>>>>
>>>> I'm testing with the default cassandra.yaml.
>>>>
>>>> I cannot reproduce the output in that gist, however:
>>>>
>>>>>> thrift_client = client.instance_variable_get(:@client)
>>>>
>>>> =>    nil
>>>> Also, the Thrift version for 0.7 is 11.0.0, according to the code I
>>>> have.  Can someone comment on whether 0.7 beta1 is at Thrift interface
>>>> version 10.0.0 or 11.0.0?
>>>>
>>>>
>>>> b
>>>>
>>>> On Mon, Aug 16, 2010 at 9:03 PM, Mark<st...@gmail.com>
>>>>  wrote:
>>>>>
>>>>>  On 8/16/10 8:51 PM, Mark wrote:
>>>>>>
>>>>>>  On 8/16/10 6:19 PM, Benjamin Black wrote:
>>>>>>>
>>>>>>> client = Cassandra.new('system', '127.0.0.1:9160')
>>>>>>
>>>>>> Brand new download of beta-0.7.0-beta1
>>>>>>
>>>>>> http://gist.github.com/528357
>>>>>>
>>>>>> Which thrift/thrift_client versions are you using?
>>>>>
>>>>> FYI also tested similar setup on another machine and same results. Is
>>>>> there
>>>>> any configuration change I need in cassandra.yaml or something?
>>>>>
>>> thrift_client = client.instance_variable_get(:@client)
>>>
>>> The above client will only be instantiated after making (or attempting in
>>> my
>>> case) a request.
>>>
>>>
> Works like a charm. Thanks
>

Re: Cassandra gem

Posted by Mark <st...@gmail.com>.
  On 8/17/10 5:44 PM, Benjamin Black wrote:
> Updated code is now in my master branch, with the reversion to 10.0.0.
>   Please let me know of further trouble.
>
>
> b
>
> On Tue, Aug 17, 2010 at 8:31 AM, Mark<st...@gmail.com>  wrote:
>>   On 8/16/10 11:37 PM, Benjamin Black wrote:
>>> I'm testing with the default cassandra.yaml.
>>>
>>> I cannot reproduce the output in that gist, however:
>>>
>>>>> thrift_client = client.instance_variable_get(:@client)
>>> =>    nil
>>> Also, the Thrift version for 0.7 is 11.0.0, according to the code I
>>> have.  Can someone comment on whether 0.7 beta1 is at Thrift interface
>>> version 10.0.0 or 11.0.0?
>>>
>>>
>>> b
>>>
>>> On Mon, Aug 16, 2010 at 9:03 PM, Mark<st...@gmail.com>    wrote:
>>>>   On 8/16/10 8:51 PM, Mark wrote:
>>>>>   On 8/16/10 6:19 PM, Benjamin Black wrote:
>>>>>> client = Cassandra.new('system', '127.0.0.1:9160')
>>>>> Brand new download of beta-0.7.0-beta1
>>>>>
>>>>> http://gist.github.com/528357
>>>>>
>>>>> Which thrift/thrift_client versions are you using?
>>>> FYI also tested similar setup on another machine and same results. Is
>>>> there
>>>> any configuration change I need in cassandra.yaml or something?
>>>>
>> thrift_client = client.instance_variable_get(:@client)
>>
>> The above client will only be instantiated after making (or attempting in my
>> case) a request.
>>
>>
Works like a charm. Thanks

Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
Updated code is now in my master branch, with the reversion to 10.0.0.
 Please let me know of further trouble.


b

On Tue, Aug 17, 2010 at 8:31 AM, Mark <st...@gmail.com> wrote:
>  On 8/16/10 11:37 PM, Benjamin Black wrote:
>>
>> I'm testing with the default cassandra.yaml.
>>
>> I cannot reproduce the output in that gist, however:
>>
>>>> thrift_client = client.instance_variable_get(:@client)
>>
>> =>  nil
>> Also, the Thrift version for 0.7 is 11.0.0, according to the code I
>> have.  Can someone comment on whether 0.7 beta1 is at Thrift interface
>> version 10.0.0 or 11.0.0?
>>
>>
>> b
>>
>> On Mon, Aug 16, 2010 at 9:03 PM, Mark<st...@gmail.com>  wrote:
>>>
>>>  On 8/16/10 8:51 PM, Mark wrote:
>>>>
>>>>  On 8/16/10 6:19 PM, Benjamin Black wrote:
>>>>>
>>>>> client = Cassandra.new('system', '127.0.0.1:9160')
>>>>
>>>> Brand new download of beta-0.7.0-beta1
>>>>
>>>> http://gist.github.com/528357
>>>>
>>>> Which thrift/thrift_client versions are you using?
>>>
>>> FYI also tested similar setup on another machine and same results. Is
>>> there
>>> any configuration change I need in cassandra.yaml or something?
>>>
>
> thrift_client = client.instance_variable_get(:@client)
>
> The above client will only be instantiated after making (or attempting in my
> case) a request.
>
>

Re: Cassandra gem

Posted by Mark <st...@gmail.com>.
  On 8/16/10 11:37 PM, Benjamin Black wrote:
> I'm testing with the default cassandra.yaml.
>
> I cannot reproduce the output in that gist, however:
>
>>> thrift_client = client.instance_variable_get(:@client)
> =>  nil
> Also, the Thrift version for 0.7 is 11.0.0, according to the code I
> have.  Can someone comment on whether 0.7 beta1 is at Thrift interface
> version 10.0.0 or 11.0.0?
>
>
> b
>
> On Mon, Aug 16, 2010 at 9:03 PM, Mark<st...@gmail.com>  wrote:
>>   On 8/16/10 8:51 PM, Mark wrote:
>>>   On 8/16/10 6:19 PM, Benjamin Black wrote:
>>>> client = Cassandra.new('system', '127.0.0.1:9160')
>>> Brand new download of beta-0.7.0-beta1
>>>
>>> http://gist.github.com/528357
>>>
>>> Which thrift/thrift_client versions are you using?
>> FYI also tested similar setup on another machine and same results. Is there
>> any configuration change I need in cassandra.yaml or something?
>>

thrift_client = client.instance_variable_get(:@client)

The above client will only be instantiated after making (or attempting in my case) a request.


Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
I'm testing with the default cassandra.yaml.

I cannot reproduce the output in that gist, however:

>> thrift_client = client.instance_variable_get(:@client)
=> nil
>>

Also, the Thrift version for 0.7 is 11.0.0, according to the code I
have.  Can someone comment on whether 0.7 beta1 is at Thrift interface
version 10.0.0 or 11.0.0?


b

On Mon, Aug 16, 2010 at 9:03 PM, Mark <st...@gmail.com> wrote:
>  On 8/16/10 8:51 PM, Mark wrote:
>>
>>  On 8/16/10 6:19 PM, Benjamin Black wrote:
>>>
>>> client = Cassandra.new('system', '127.0.0.1:9160')
>>
>> Brand new download of beta-0.7.0-beta1
>>
>> http://gist.github.com/528357
>>
>> Which thrift/thrift_client versions are you using?
>
> FYI also tested similar setup on another machine and same results. Is there
> any configuration change I need in cassandra.yaml or something?
>

Re: Cassandra gem

Posted by Mark <st...@gmail.com>.
  On 8/16/10 8:51 PM, Mark wrote:
>  On 8/16/10 6:19 PM, Benjamin Black wrote:
>> client = Cassandra.new('system', '127.0.0.1:9160')
> Brand new download of beta-0.7.0-beta1
>
> http://gist.github.com/528357
>
> Which thrift/thrift_client versions are you using?
FYI also tested similar setup on another machine and same results. Is 
there any configuration change I need in cassandra.yaml or something?

Re: Cassandra gem

Posted by Mark <st...@gmail.com>.
  On 8/16/10 6:19 PM, Benjamin Black wrote:
> client = Cassandra.new('system', '127.0.0.1:9160')
Brand new download of beta-0.7.0-beta1

http://gist.github.com/528357

Which thrift/thrift_client versions are you using?

Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
$ irb
>> require "lib/cassandra/0.7"
=> true
>> client = Cassandra.new('system', '127.0.0.1:9160')
=> #<Cassandra:2160486220, @keyspace="system", @schema={},
@servers=["127.0.0.1:9160"]>
>> client.keyspaces
=> ["system"]
>> client.partitioner
=> "org.apache.cassandra.dht.RandomPartitioner"
>>

On Mon, Aug 16, 2010 at 5:46 PM, Mark <st...@gmail.com> wrote:
>  On 8/16/10 3:58 PM, Benjamin Black wrote:
>>
>> If you pulled before a couple hours ago and did not use the 'trunk'
>> branch, then you don't have current code.  I merged the trunk branch
>> to master earlier today and sent a pull request for the fauna repo to
>> get the changes, as well.  Also fixed a bug another user found when
>> running with Ruby 1.9.
>>
>> Summary: pull again, use master, have fun.  If it still doesn't work,
>> please open an issue to me.
>>
>>
>> b
>>
>> On Mon, Aug 16, 2010 at 2:13 PM, Mark<st...@gmail.com>  wrote:
>>>
>>> Just upgraded my cassandra gem today to b/cassandra fork and noticed that
>>> the transport changed. I re-enabled TFramedTransport in cassandra.yml but
>>> my
>>> client no longer works. I keep receiving the following error.
>>>
>>> Thrift::ApplicationException: describe_keyspace failed: unknown result
>>>    from
>>>
>>> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:346:in
>>> `recv_describe_keyspace'
>>>    from
>>>
>>> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:335:in
>>> `describe_keyspace'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
>>> `send'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
>>> `send_rpc'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:164:in
>>> `send_rpc'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:63:in
>>> `proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:154:in
>>> `proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:53:in
>>> `handled_proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:150:in
>>> `handled_proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:23:in
>>> `describe_keyspace'
>>>    from (irb):14
>>>
>>> Any clues?
>>>
> Still getting the same error. describe_keyspaces doesnt work. Does it work
> for you?
>
> I am using:
>
> apache-cassandra-0.7.0-beta1-bin,
> thrift (0.2.0.4)
> thrift_client (0.4.6)
>
> Any clue? Thanks!
>
>

Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
can you gist the code?

On Mon, Aug 16, 2010 at 5:46 PM, Mark <st...@gmail.com> wrote:
>  On 8/16/10 3:58 PM, Benjamin Black wrote:
>>
>> If you pulled before a couple hours ago and did not use the 'trunk'
>> branch, then you don't have current code.  I merged the trunk branch
>> to master earlier today and sent a pull request for the fauna repo to
>> get the changes, as well.  Also fixed a bug another user found when
>> running with Ruby 1.9.
>>
>> Summary: pull again, use master, have fun.  If it still doesn't work,
>> please open an issue to me.
>>
>>
>> b
>>
>> On Mon, Aug 16, 2010 at 2:13 PM, Mark<st...@gmail.com>  wrote:
>>>
>>> Just upgraded my cassandra gem today to b/cassandra fork and noticed that
>>> the transport changed. I re-enabled TFramedTransport in cassandra.yml but
>>> my
>>> client no longer works. I keep receiving the following error.
>>>
>>> Thrift::ApplicationException: describe_keyspace failed: unknown result
>>>    from
>>>
>>> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:346:in
>>> `recv_describe_keyspace'
>>>    from
>>>
>>> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:335:in
>>> `describe_keyspace'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
>>> `send'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
>>> `send_rpc'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:164:in
>>> `send_rpc'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:63:in
>>> `proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:154:in
>>> `proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:53:in
>>> `handled_proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:150:in
>>> `handled_proxy'
>>>    from
>>>
>>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:23:in
>>> `describe_keyspace'
>>>    from (irb):14
>>>
>>> Any clues?
>>>
> Still getting the same error. describe_keyspaces doesnt work. Does it work
> for you?
>
> I am using:
>
> apache-cassandra-0.7.0-beta1-bin,
> thrift (0.2.0.4)
> thrift_client (0.4.6)
>
> Any clue? Thanks!
>
>

Re: Cassandra gem

Posted by Mark <st...@gmail.com>.
  On 8/16/10 3:58 PM, Benjamin Black wrote:
> If you pulled before a couple hours ago and did not use the 'trunk'
> branch, then you don't have current code.  I merged the trunk branch
> to master earlier today and sent a pull request for the fauna repo to
> get the changes, as well.  Also fixed a bug another user found when
> running with Ruby 1.9.
>
> Summary: pull again, use master, have fun.  If it still doesn't work,
> please open an issue to me.
>
>
> b
>
> On Mon, Aug 16, 2010 at 2:13 PM, Mark<st...@gmail.com>  wrote:
>> Just upgraded my cassandra gem today to b/cassandra fork and noticed that
>> the transport changed. I re-enabled TFramedTransport in cassandra.yml but my
>> client no longer works. I keep receiving the following error.
>>
>> Thrift::ApplicationException: describe_keyspace failed: unknown result
>>     from
>> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:346:in
>> `recv_describe_keyspace'
>>     from
>> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:335:in
>> `describe_keyspace'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
>> `send'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
>> `send_rpc'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:164:in
>> `send_rpc'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:63:in
>> `proxy'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:154:in
>> `proxy'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:53:in
>> `handled_proxy'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:150:in
>> `handled_proxy'
>>     from
>> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:23:in
>> `describe_keyspace'
>>     from (irb):14
>>
>> Any clues?
>>
Still getting the same error. describe_keyspaces doesnt work. Does it 
work for you?

I am using:

apache-cassandra-0.7.0-beta1-bin,
thrift (0.2.0.4)
thrift_client (0.4.6)

Any clue? Thanks!


Re: Cassandra gem

Posted by Benjamin Black <b...@b3k.us>.
If you pulled before a couple hours ago and did not use the 'trunk'
branch, then you don't have current code.  I merged the trunk branch
to master earlier today and sent a pull request for the fauna repo to
get the changes, as well.  Also fixed a bug another user found when
running with Ruby 1.9.

Summary: pull again, use master, have fun.  If it still doesn't work,
please open an issue to me.


b

On Mon, Aug 16, 2010 at 2:13 PM, Mark <st...@gmail.com> wrote:
>
> Just upgraded my cassandra gem today to b/cassandra fork and noticed that
> the transport changed. I re-enabled TFramedTransport in cassandra.yml but my
> client no longer works. I keep receiving the following error.
>
> Thrift::ApplicationException: describe_keyspace failed: unknown result
>    from
> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:346:in
> `recv_describe_keyspace'
>    from
> workspace/vendor/plugins/cassandra/lib/../vendor/0.7/gen-rb/cassandra.rb:335:in
> `describe_keyspace'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
> `send'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:67:in
> `send_rpc'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:164:in
> `send_rpc'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:63:in
> `proxy'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:154:in
> `proxy'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:53:in
> `handled_proxy'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:150:in
> `handled_proxy'
>    from
> workspace/vendor/plugins/thrift_client/lib/thrift_client/abstract_thrift_client.rb:23:in
> `describe_keyspace'
>    from (irb):14
>
> Any clues?
>