incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate McCall <n...@datastax.com>
Subject Re: CQL + Counters = bad request
Date Thu, 14 Jul 2011 22:30:18 GMT
Yep there was an issue here. RPM has been updated to 0.8.1-2 and
deployed. Thanks for tracking this down.

On Wed, Jul 13, 2011 at 3:58 PM, Aaron Turner <synfinatic@gmail.com> wrote:
> Thanks.  Looks like we tracked down the problem to the datasax 0.8.1
> rpm is actually 0.8.0.
>
> rpm -qa | grep cassandra
> apache-cassandra08-0.8.1-1
>
> grep ' Cassandra version:' /var/log/cassandra/system.log | tail -1
> INFO [main] 2011-07-13 12:04:31,039 StorageService.java (line 368)
> Cassandra version: 0.8.0
>
>
>
> On Wed, Jul 13, 2011 at 11:40 AM, samal <samal@wakya.in> wrote:
>>> >>> cqlsh> UPDATE RouterAggWeekly SET 1310367600 = 1310367600 + 17
WHERE
>>> >>> KEY = '1_20110728_ifoutmulticastpkts';
>>> >>> Bad Request: line 1:51 no viable alternative at character '+'
>>
>> I m able to insert it.
>> _______________________
>> cqlsh>
>> cqlsh>  UPDATE counts SET 1310367600 = 1310367600 + 17 WHERE KEY =
>> '1_20110728_ifoutmulticastpkts';
>> cqlsh>  UPDATE counts SET 1310367600 = 1310367600 + 17 WHERE KEY =
>> '1_20110728_ifoutmulticastpkts';
>> cqlsh>
>> _____________________________
>> [default@test] list counts;
>> Using default limit of 100
>> -------------------
>> RowKey: 1_20110728_ifoutmulticastpkts
>> => (counter=12, value=16)
>> => (counter=1310367600, value=34)
>> -------------------
>> RowKey: 1
>> => (counter=1, value=10)
>> 2 Rows Returned.
>> [default@test]
>>
>
>
>
> --
> Aaron Turner
> http://synfin.net/         Twitter: @synfinatic
> http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
> Those who would give up essential Liberty, to purchase a little temporary
> Safety, deserve neither Liberty nor Safety.
>     -- Benjamin Franklin
> "carpe diem quam minimum credula postero"
>

Mime
View raw message