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
Date Tue, 07 Jun 2011 18:44:50 GMT
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]



On 6/7/2011 12:27 PM, Jonathan Ellis wrote:
> try running cli with --debug
>
> On Tue, Jun 7, 2011 at 1:22 PM, AJ<aj@dude.podzone.net>  wrote:
>> Ver 0.8.0.
>>
>> Please help.  I don't know what I'm doing wrong.  One simple keyspace with
>> one simple CF with one simple column.  I've tried two simple tutorials.  Is
>> there a common newbie mistake I could be making???
>>
>> Thanks in advance!
>>
>>
>> [default@Keyspace1] describe keyspace;
>> Keyspace: Keyspace1:
>>   Replication Strategy: org.apache.cassandra.locator.NetworkTopologyStrategy
>>     Options: [replication_factor:1]
>>   Column Families:
>>     ColumnFamily: User
>>       Key Validation Class: org.apache.cassandra.db.marshal.LongType
>>       Default column value validator:
>> org.apache.cassandra.db.marshal.UTF8Type
>>       Columns sorted by: org.apache.cassandra.db.marshal.UTF8Type
>>       Row cache size / save period in seconds: 0.0/0
>>       Key cache size / save period in seconds: 200000.0/14400
>>       Memtable thresholds: 0.2859375/61/1440 (millions of ops/MB/minutes)
>>       GC grace seconds: 864000
>>       Compaction min/max thresholds: 4/32
>>       Read repair chance: 1.0
>>       Replicate on write: false
>>       Built indexes: []
>>       Column Metadata:
>>         Column Name: name
>>           Validation Class: org.apache.cassandra.db.marshal.UTF8Type
>> [default@Keyspace1]
>> [default@Keyspace1] set User[long(1)][utf8('name')]=utf8('aaa');
>> null
>> [default@Keyspace1] set User[1]['name']='aaa';
>> null
>> [default@Keyspace1]
>> [default@Keyspace1] list User;
>> Using default limit of 100
>> null
>> [default@Keyspace1]
>>
>>
>>
>>
>
>


Mime
View raw message