Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4ED7A1036D for ; Sat, 20 Apr 2013 04:37:22 +0000 (UTC) Received: (qmail 50157 invoked by uid 500); 20 Apr 2013 04:37:19 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 49879 invoked by uid 500); 20 Apr 2013 04:37:19 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 49854 invoked by uid 99); 20 Apr 2013 04:37:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Apr 2013 04:37:18 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dmcnelis@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vb0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Apr 2013 04:37:13 +0000 Received: by mail-vb0-f52.google.com with SMTP id w8so4258410vbf.25 for ; Fri, 19 Apr 2013 21:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=CDip8MXcA0uf1mZM7jI80pFPpTkNNtZDOPIw81RBPx0=; b=mPgjlQGbmHfzRCHQY1mStlTqFyFpIKRvNHIvIxwcnLSSwDWHxmRl3t8txpx4BhUPxR F/6+NlqOc+skv4gP0lOXbYeDUho7BdfocrqipcGtp46vVH9q/qaaMIO8c5AIddmTOP7m GuAxOStLD+cmeUMOQfWKFLemug9rTnVpWlt43WFC5MouK63zbHameljp+g3KpI8EXLHP NjEYqwyWlQt5lToOm7FPiMYIJC9PPfvlZiH5n9OnhrrorDDx2Z0Augayk3zvIS11Qj/E /hFQHmk7ZOP71ErTZUF4inCYrv7fWMRIIuciHHGdHl8NlAIhpiog9Ks1qHLd5LYJdo6K RHtw== MIME-Version: 1.0 X-Received: by 10.52.159.6 with SMTP id wy6mr11445073vdb.18.1366432612596; Fri, 19 Apr 2013 21:36:52 -0700 (PDT) Received: by 10.58.161.4 with HTTP; Fri, 19 Apr 2013 21:36:52 -0700 (PDT) Date: Fri, 19 Apr 2013 23:36:52 -0500 Message-ID: Subject: Building SSTables using SSTableSimpleUnsortedWriter (v. 1.2.3) From: David McNelis To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=089e016339be7bc04a04dac36220 X-Virus-Checked: Checked by ClamAV on apache.org --089e016339be7bc04a04dac36220 Content-Type: text/plain; charset=ISO-8859-1 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 ) This created my SST files ok and they imported without throwing any sorts of errors (had -v and --debug on) when using sstableloader. When I went to query my data in cqlsh, I got an rpc error. In my system.log I saw an exception: java.lang.RuntimeException: java.lang.IllegalArgumentException (also at the gist above). I had a feeling that it wouldn't work.. but I can't see a way with the SSTableSimpleUnsortedWriter (or in the AbstractSSTableWriter) to create an sstable file that is going to work with the CQL3 tables. I know its got to be possible, I can import SSTs with the sstableloader from one cluster to another, where the tables are CQL3. What am I missing here? --089e016339be7bc04a04dac36220 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Was trying to do a test of writing SSTs for a CQL3 table. = =A0So I created the following table:

CREATE TABLE t= est_sst_load (
=A0 mykey1 ascii,
=A0 mykey2 ascii,
=A0 value1 ascii,
=A0 PRIMARY KEY (mykey1, mykey2)
)=A0=

I then set up my writer like so: (mov= ed to gist:=A0https://= gist.github.com/dmcnelis/5424756 )

This created my SST files ok and they impor= ted without throwing any sorts of errors (had -v and --debug on) when using= sstableloader.

When I went to query m= y data in cqlsh, I got an rpc error. =A0In my system.log I saw an exception= : java.lang.RuntimeException: java.lang.IllegalArgumentException
=A0(also at the gist above).

I had a feeling that it wouldn't work.. but I can't see a way wit= h the SSTableSimpleUnsortedWriter (or in the AbstractSSTableWriter) to crea= te an sstable file that is going to work with the CQL3 tables. =A0I know it= s got to be possible, I can import SSTs with the sstableloader from one clu= ster to another, where the tables are CQL3.

What am I missing here?



--089e016339be7bc04a04dac36220--