Re: Bulk loading into CQL3 Composite Columns

2013-05-31 Thread Daniel Morton
.add(bytes(10)); builder.add(bytes(20)); ssTableWriter.newRow(bytes("0|20101201")); ssTableWriter.addColumn( builder.build(), ByteBuffer.allocate(0), System.nanoTime() ); ssTableWriter.close();

Re: Bulk loading into CQL3 Composite Columns

2013-05-30 Thread Daniel Morton
Hi Edward... Thanks for the pointer. I will use that going forward. Daniel Morton On Thu, May 30, 2013 at 4:09 PM, Edward Capriolo wrote: > You should probably be using system.nanoTime() not > system.currentTimeInMillis(). The user is free to set the timestamp to > whatever they like

Re: Bulk loading into CQL3 Composite Columns

2013-05-30 Thread Daniel Morton
rentTimeMillis()); (where bytes is the statically imported ByteBufferUtil.bytes method) But doing this resulted in an ArrayIndexOutOfBounds exception from Cassandra. Is doing this any different than using the CompositeSerializer you suggest? Thanks again, Daniel Morton On Thu, May 30, 20

Re: Cassandra on a single (under-powered) instance?

2013-05-30 Thread Daniel Morton
Hi Tyler... Thank you very much for the response. It is nice to know that there is some possibility this might work. :) Regards, Daniel Morton On Wed, May 29, 2013 at 2:03 PM, Tyler Hobbs wrote: > You can get away with a 1 to 2GB heap if you don't put too much pressure > on it.

Bulk loading into CQL3 Composite Columns

2013-05-30 Thread Daniel Morton
columns? Does the fact that I am not inserting a value for the columns make a difference? For my particular use case, all I care about is the values in the column names themselves (and the associated sorting that goes with them). Any info or help anyone could provide would be very much appreciated. Regards, Daniel Morton

Cassandra on a single (under-powered) instance?

2013-05-28 Thread Daniel Morton
n that the minimum recommended system requirements are 8 to 12 cores and 8 GB of RAM, which is a far cry from the lowest-end machine I'm considering. Any info or help anyone could provide would be most appreciated. Regards, Daniel Morton