Re: Building SSTables using SSTableSimpleUnsortedWriter (v. 1.2.3)

2013-04-24 Thread praveen.akunuru
Hi David, We have adapted Bulkload example provided by Datastax as below to write SSTables for column family that uses Composite keys and this is working fine for us. Hope this will be of use to you. ListAbstractType? compositeList = new ArrayListAbstractType?();

Re: Building SSTables using SSTableSimpleUnsortedWriter (v. 1.2.3)

2013-04-21 Thread aaron morton
The key to your problem is likely the row key. Take a look in at the table schema / sample data in the cassandra-cli to see how CQL uses composites also http://thelastpickle.com/2013/01/11/primary-keys-in-cql/ The simple thing to do is use COMPACT STORAGE but that may not suite all use cases

Re: Building SSTables using SSTableSimpleUnsortedWriter (v. 1.2.3)

2013-04-21 Thread David McNelis
I figured that the primary key and how to define it was the issue. What I don't get is how to structure my SSTableSimpleUnsortedWriter.newRow() call to support the CQL3 style composite primary keys. It takes only a ByteBuffer as an argument... I guess I'm looking for some kind of example of a

Building SSTables using SSTableSimpleUnsortedWriter (v. 1.2.3)

2013-04-19 Thread David McNelis
Was trying to do a test of writing SSTs for a CQL3 table. So I created the following table: CREATE TABLE test_sst_load ( mykey1 ascii, mykey2 ascii, value1 ascii, PRIMARY KEY (mykey1, mykey2) ) I then set up my writer like so: (moved to gist: https://gist.github.com/dmcnelis/5424756 )

Re: Building SSTables with SSTableSimpleUnsortedWriter

2012-04-29 Thread Benoit Perroud
with a higher buffer size? Thanks! -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Building-SSTables-with-SSTableSimpleUnsortedWriter-tp7507756.html Sent from the cassandra-u...@incubator.apache.org mailing list archive at Nabble.com. -- sent