Looks like the column meta for the CF specifies a column name that is not a 
valid Long. I seem to remember a bug like this something in the past. 

You should be able to work around this by running  ALTER COLUMN FAMILY and only 
specifying valid column meta data. 

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 18/10/2011, at 6:26 PM, Radim Kolar wrote:

> Dne 17.10.2011 22:06, aaron morton napsal(a):
>> Hi there,
>>      If you start cassandra-cli with --debug it will output a stack trace if 
>> the error is client side.
> A long is exactly 8 bytes: 5
> java.lang.RuntimeException: A long is exactly 8 bytes: 5
>        at 
> org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:310)
>        at org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217)
>        at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)
> Caused by: org.apache.cassandra.db.marshal.MarshalException: A long is 
> exactly 8 bytes: 5
>        at org.apache.cassandra.db.marshal.LongType.getString(LongType.java:72)
>        at 
> org.apache.cassandra.cli.CliClient.showColumnMeta(CliClient.java:1710)
>        at 
> org.apache.cassandra.cli.CliClient.showColumnFamily(CliClient.java:1687)
>        at org.apache.cassandra.cli.CliClient.showKeyspace(CliClient.java:1637)
>        at 
> org.apache.cassandra.cli.CliClient.executeShowSchema(CliClient.java:1598)
>        at 
> org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:250)
>        ... 2 more
> 
> No error in server log. cli expect long value but in database is stored 
> something different. it should not be possible to store different type if 
> column has metadata set.

Reply via email to