incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 李楠 <qingnan...@gmail.com>
Subject Re: how to add table in storage-conf.xml
Date Fri, 24 Jul 2009 01:54:01 GMT
i use apache-cassandra-incubating-0.3.0.jar and not find  ColumnPath class.

2009/7/23 Gasol Wu <gasol.wu@gmail.com>

> ColumnPath cp = new ColumnPath("content", null, "name");
> client.insert("users", key_user_id, cp, "Chris Goffinet".getBytes("UTF-8"),
> timestamp, false);
>
> don't use trunk,unless you know what you are doing.
>
>
> http://mail-archives.apache.org/mod_mbox/incubator-cassandra-dev/200907.mbox/%3Ce06563880907081147x57f2e4f2h5ae8f0f96dc81ebd@mail.gmail.com%3E
>
>
> On Thu, Jul 23, 2009 at 5:18 PM, 李楠 <qingnan.li@gmail.com> wrote:
>
>> i add table tag in storage-conf.xml:
>>  <Table Name="users">
>>      <ColumnFamily ColumnSort="Name" Name="content"/>
>>  </Table>
>>
>> and then invoke by below program:
>>
>> client.insert("users", key_user_id, "content:name", "Chris
>> Goffinet".getBytes("UTF-8"), timestamp, false);
>>
>> and then throws exception:
>>
>> InvalidRequestException(why:Column Family content is invalid.)
>> at
>> org.apache.cassandra.service.Cassandra$insert_result.read(Cassandra.java:5072)
>>  at
>> org.apache.cassandra.service.Cassandra$Client.recv_insert(Cassandra.java:303)
>> at
>> org.apache.cassandra.service.Cassandra$Client.insert(Cassandra.java:276)
>>  at com.chinaren.alumni4.cassandra.CClient.main(CClient.java:33)
>>
>> please tell me why and how modify am i,thanks a lot.
>>
>
>

Mime
View raw message