incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sasha Dolgy <sdo...@gmail.com>
Subject Re: CLI exception :: A long is exactly 8 bytes: 1
Date Fri, 30 Dec 2011 17:09:50 GMT
as per the wiki link you sent, i change my query to:

get user where something = '1';

Still throws the error ... This was fine *before* I ran the update CF
command ..

To Query Data
get User where age = '12';

On Fri, Dec 30, 2011 at 6:05 PM, Moshiur Rahman <moshi.buet@gmail.com> wrote:
> I think you need to mention data type in your command. You have to run the
> following command first:
> assume <CFName> keys as <TypeName, i.e., utf8>
>
> Otherwise, you need to mention type with each command, e.g.,
> utf8('keyname').
> http://wiki.apache.org/cassandra/CassandraCli
>
> Moshiur
>
>
>
> On Fri, Dec 30, 2011 at 10:50 AM, Sasha Dolgy <sdolgy@gmail.com> wrote:
>>
>> Hi Everyone,
>>
>> Been a while .. without any problems.  Thanks for grinding out a good
>> product!  On 1.0.6, I applied an update to a column family to add a
>> secondary index, and now via the CLI, when I perform a "get user where
>> something=1" I receive the following result:
>>
>> org.apache.cassandra.db.marshal.MarshalException: A long is exactly 8
>> bytes: 1
>>
>> This behaviour doesn't seem to be affecting phpcassa or hector
>> retrieving the results of that query ... is this a silly something
>> i've done, or something a bit more buggy with the CLI?
>>
>> Thanks in advance,
>> -sd

Mime
View raw message