Error with Cassandra Only Example in contrib/client_only

2010-03-01 Thread JKnight JKnight
Dear all, I tried to run ClientOnlyExample.java on contrib/client_only. But the code did not run. The error is: Exception in thread main java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at

Re: Error with Cassandra Only Example in contrib/client_only

2010-03-01 Thread JKnight JKnight
Could you give me the config file? Thanks On Mon, Mar 1, 2010 at 11:34 PM, Jonathan Ellis jbel...@gmail.com wrote: That means it doesn't know any of your other nodes. Probably you don't have it configured with a seed. On Mon, Mar 1, 2010 at 9:31 PM, JKnight JKnight beukni...@gmail.com

Cassandra: How can I prevent data losing?

2010-02-26 Thread JKnight JKnight
Dear all, My Cassandra data file (...-Data.db) have problem. I tried some ways 1. Use SstableExport: All row after error row can not be accessed. So with large data file, I loss a lot of data. 2. Use Index file to get data position, and seek to this position in data file to read data. All row

Change partitioner from Random to OrderPreserving

2010-02-21 Thread JKnight JKnight
Dear all, I want to change partitioner from Random to OrderPreserving. How can I do with old data? Thank a lot for support. -- Best regards, JKnight

Re: Cassandra error with large connection

2010-02-02 Thread JKnight JKnight
Thank you very much, Mr Jonathan. On Mon, Feb 1, 2010 at 11:04 AM, Jonathan Ellis jbel...@gmail.com wrote: On Mon, Feb 1, 2010 at 10:03 AM, Jonathan Ellis jbel...@gmail.com wrote: I see a lot of CLOSE_WAIT TCP connection. Also, this sounds like you are not properly pooling client

Re: Can fix corrupt file? (Compaction step)

2010-01-26 Thread JKnight JKnight
, Jonathan Ellis jbel...@gmail.com wrote: I am working on a patch for you. On Thu, Jan 14, 2010 at 9:21 PM, JKnight JKnight beukni...@gmail.com wrote: Dear all, This is my data model Keyspace Name=FeedUsers ColumnFamily CompareWith=BytesType Name=FeedUsersHome / /Keyspace

Re: Can fix corrupt file? (Compaction step)

2010-01-11 Thread JKnight JKnight
Dear Mr Jonathan, Did you get the attachment? On Sun, Jan 10, 2010 at 8:59 PM, JKnight JKnight beukni...@gmail.comwrote: The attachment contains data that raise error in compact step. Could you help me to detect the problem? On Fri, Jan 8, 2010 at 3:09 PM, Jonathan Ellis jbel...@gmail.com

Re: Can fix corrupt file? (Compaction step)

2010-01-08 Thread JKnight JKnight
. On Fri, Jan 8, 2010 at 11:08 AM, Jonathan Ellis jbel...@gmail.com wrote: How many columns do you have in your rows? How big a heap are you giving to sstable2json? On Thu, Jan 7, 2010 at 9:37 PM, JKnight JKnight beukni...@gmail.com wrote: Yes. The error is ERROR: Out of memory deserializing

Re: How to UUID in .Net

2010-01-08 Thread JKnight JKnight
Cassandra server use UUID version 1. Maybe the uuidgen.exe does not generator correct UUID version. 2010/1/9 Nguyễn Minh Kha nminh...@gmail.com Hi, I'm writing Cassandra in .Net (C Sharp) but I have a problem on gen a UUID for my project. I used Guid to gen UUID Version 1 but when I add to

Can fix corrupt file? (Compaction step)

2010-01-07 Thread JKnight JKnight
Dear all, In compact step, I found the error in file SSTableScanner.java at the following method public IteratingRow next() { try { if (row != null) row.skipRemaining(); assert !file.isEOF();

Change Partitioner

2010-01-07 Thread JKnight JKnight
Dear all, Because we want to traverser all data, we need to change partitioner to ordered type. I want to change Partitioner from org.apache.cassandra.dht.RandomPartitioner to org.apache.cassandra.dht.OrderPreservingPartitioner. How can I do that? Thank a lot for support. -- Best regards,

Re: Can fix corrupt file? (Compaction step)

2010-01-07 Thread JKnight JKnight
running sstable2json on the files being compacted? On Thu, Jan 7, 2010 at 3:49 AM, JKnight JKnight beukni...@gmail.com wrote: Dear all, In compact step, I found the error in file SSTableScanner.java at the following method public IteratingRow next() { try

Re: Change Partitioner

2010-01-07 Thread JKnight JKnight
Dear Mark, I used only one server. I only change partitioner in configuration. The error is key must be in order. On Thu, Jan 7, 2010 at 6:45 AM, Mark Robson mar...@gmail.com wrote: 2010/1/7 JKnight JKnight beukni...@gmail.com Dear all, Because we want to traverser all data, we need

Re: Error in Compact step - java.io.UTFDataFormatException: malformed input around byte 13

2010-01-06 Thread JKnight JKnight
Thanks Mr Jonathan. But I did not change anything. On Wed, Jan 6, 2010 at 8:33 AM, Jonathan Ellis jbel...@gmail.com wrote: Did you change your partitioner? You can't do that once you start adding data. On Wed, Jan 6, 2010 at 3:58 AM, JKnight JKnight beukni...@gmail.com wrote: Dear all

Partition data - advantage and disadvantage

2009-12-28 Thread JKnight JKnight
Dear all, Could you show me the advantage and disadvantage of each partition type: ~ org.apache.cassandra.dht.RandomPartitioner, ~ org.apache.cassandra.dht.OrderPreservingPartitioner, and ~ org.apache.cassandra.dht.CollatingOrderPreservingPartitioner. Thank a lot for support. -- Best

How can I traverser data of column family but I don't have the row key?

2009-12-24 Thread JKnight JKnight
Dear all, How can I read data of column family but I don't have the row key? That is similar than read each row in RDBMS. Thank a lot for support. -- Best regards, JKnight

Re: How can I traverser data of column family but I don't have the row key?

2009-12-24 Thread JKnight JKnight
Dear Mr Jonathan, I have seen in the Wiki, This method is only allowed when using an order-preserving partitioner But I used random partitioner. Thanks. On Thu, Dec 24, 2009 at 10:48 PM, Jonathan Ellis jbel...@gmail.com wrote: get_slice_range in 0.5 On Thu, Dec 24, 2009 at 9:40 PM, JKnight

Get_count method error?

2009-12-13 Thread JKnight JKnight
Dear all, I found method get_count still count deleted column. Is this an error? get_count - i32 get_count(keyspace, key, column_parent, consistency_level) Counts the columns present in column_parent. -- Best regards, JKnight

Why does Cassandra not support some method?

2009-12-10 Thread JKnight JKnight
Dear all, I wonder why Cassandra do not support the following method: - multi_insert: insert multi keys - multi_remove: remove multi keys - multi_batchInsert: batch insert multi keys And how can I add above method? Thanks in advance. -- Best regards, JKnight

Best practice with Column

2009-12-07 Thread JKnight JKnight
Dear all, I have a lot data with the same key. Ex, Contact{ userId{ tel:..., phone: ... } Info{ userId{ birthday: ..., sex:..., nationality: ... } } Address{ userId{ street: ..., address: ..., city: ...,

Get_slice with reversed=true

2009-12-03 Thread JKnight JKnight
Dear all, I know in get_slice method, we have parameter reversed which has default value false. What does cassandra do when I set reversed = true? How does this difference with reversed = false? Thank a lot for support. -- Best regards, JKnight

Re: Get_slice with reversed=true

2009-12-03 Thread JKnight JKnight
/ClientExamples On Thu, Dec 3, 2009 at 9:42 PM, JKnight JKnight beukni...@gmail.com wrote: Thanks for your reply. Could you show me how Cassandra do in code? Thanks. On Thu, Dec 3, 2009 at 10:15 PM, Jonathan Ellis jbel...@gmail.com wrote: it means instead of being in the order