cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AJ ...@dude.podzone.net>
Subject Re: CLI set command returns null, ver 0.8.0
Date Wed, 08 Jun 2011 04:12:54 GMT
Can anyone help?  The CLI seems to be having issues.  The count command 
isn't working either:

[default@Keyspace1] count User[long(1)];
Expected 8 or 0 byte long (13)
java.lang.RuntimeException: Expected 8 or 0 byte long (13)
         at 
org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:284)
         at 
org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217)
         at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)
[default@Keyspace1]
[default@Keyspace1] count User[1];;
Expected 8 or 0 byte long (1)
java.lang.RuntimeException: Expected 8 or 0 byte long (1)
         at 
org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:284)
         at 
org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217)
         at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)
[default@Keyspace1] count User['1'];
Expected 8 or 0 byte long (1)
java.lang.RuntimeException: Expected 8 or 0 byte long (1)
         at 
org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:284)
         at 
org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217)
         at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)
[default@Keyspace1] count User['12345678'];
null
java.lang.RuntimeException
         at 
org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:292)
         at 
org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217)
         at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)
[default@Keyspace1]


Granted, there are no rows in the CF yet (see probs below), but this 
exception seems to be during the parsing stage.

I've check everything else, AFAIK, so I'm at a loss.

Much obliged.

On 6/7/2011 12:44 PM, AJ wrote:
> The log only shows INFO level messages about flushes, etc..
>
> The debug mode of the CLI shows an exception after the set:
>
> [al@mars ~]$ cassandra-cli -h 192.168.1.101 --debug
> Connected to: "Test Cluster" on 192.168.1.101/9160
> Welcome to the Cassandra CLI.
>
> Type 'help;' or '?' for help.
> Type 'quit;' or 'exit;' to quit.
>
> [default@unknown] use Keyspace1;
> Authenticated to keyspace: Keyspace1
> [default@Keyspace1] set User[1]['name']='aaa';
> null
> java.lang.RuntimeException
>         at 
> org.apache.cassandra.cli.CliClient.executeCLIStatement(CliClient.java:292)
>         at 
> org.apache.cassandra.cli.CliMain.processStatement(CliMain.java:217)
>         at org.apache.cassandra.cli.CliMain.main(CliMain.java:345)
> [default@Keyspace1]
>
>


Mime
View raw message