From user-return-34520-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Sat Jun 8 09:53:42 2013 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 3BCC7106EC for ; Sat, 8 Jun 2013 09:53:42 +0000 (UTC) Received: (qmail 6866 invoked by uid 500); 8 Jun 2013 09:53:39 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 6350 invoked by uid 500); 8 Jun 2013 09:53:32 -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 6342 invoked by uid 99); 8 Jun 2013 09:53:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jun 2013 09:53:31 +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 (nike.apache.org: domain of davide.anastasia@gmail.com designates 209.85.215.180 as permitted sender) Received: from [209.85.215.180] (HELO mail-ea0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Jun 2013 09:53:24 +0000 Received: by mail-ea0-f180.google.com with SMTP id k10so4259090eaj.11 for ; Sat, 08 Jun 2013 02:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to:x-mailer; bh=1ArEt44d6LqGh9qu9zIZjigt3ypwzQzvgssjTkwaG2Q=; b=JTlLolTNv87InD7DsOFwWIvBzjYHFl+FDDfP7zFvONdJ5AP6DiirysQgmrN9x0fbFW yj6u8BCYcgyP67msuw9TBsoIpu32DXC+oE9CrbGga/eAX/QjBcBUvq+AoJDbT5i1HZZz 1MQvY8cTpKPRIt48gTi7wgGARniYxxwrw7RO/q7CRYpZx6G5I2gU5oXWXLbzZ/WFEkFX lbRjqW+9kXTb5aAgWVzGTuVegcJ+Og2iklQsmXEvylUVooS43lfJexeJyKhpEv4yXL0F Md3TEzeoebeQGgXdo96Wz9ZktnybZ0Q7SMSlKAGktSv/THQfFeQlvSKm2ntFI+g6YEf3 EgMA== X-Received: by 10.14.150.11 with SMTP id y11mr2555763eej.54.1370685184570; Sat, 08 Jun 2013 02:53:04 -0700 (PDT) Received: from [192.168.0.2] (cpc8-nmal17-2-0-cust305.croy.cable.virginmedia.com. [77.100.81.50]) by mx.google.com with ESMTPSA id u11sm4977729eev.12.2013.06.08.02.53.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Jun 2013 02:53:02 -0700 (PDT) From: Davide Anastasia Content-Type: multipart/alternative; boundary="Apple-Mail=_DA491000-0ECE-4495-9672-96D146B7E338" Message-Id: <18682003-1C50-4E72-AA55-E34B86158E34@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Bulk loader with Cassandra 1.2.5 Date: Sat, 8 Jun 2013 10:53:01 +0100 References: To: user@cassandra.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_DA491000-0ECE-4495-9672-96D146B7E338 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, how should the bulk loader be modified to support composite columns? Thanks, Davide On 7 Jun 2013, at 10:56, Keith Wright wrote: > Looking into it further, I believe your issue is that you did not = define the table with compact storage. Without that, CQL3 will treat = every column as a composite (as is hinted in your stack trace where you = see AbstractCompositeType is the cause of the error). Try changing your = table definition as follows: >=20 > create table users ( > id uuid primary key, > firstname varchar, > lastname varchar, > password varchar, > age int, > email varchar) > WITH COMPACT STORAGE=20 > and compaction =3D {'class' : 'LeveledCompactionStrategy' }=20 >=20 > From: Davide Anastasia > Reply-To: "user@cassandra.apache.org" > Date: Friday, June 7, 2013 2:11 AM > To: "user@cassandra.apache.org" > Subject: Re: Bulk loader with Cassandra 1.2.5 >=20 > AbstractCompositeType.java --Apple-Mail=_DA491000-0ECE-4495-9672-96D146B7E338 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii kwright@nanigans.com> = wrote:
Looking into it further, I = believe your issue is that you did not define the table with compact = storage.  Without that, CQL3 will treat every column as a composite = (as is hinted in your stack trace where you see AbstractCompositeType is = the cause of the error).  Try changing your table definition as = follows:

create table users (
id uuid primary key,
firstname varchar,
lastname varchar,
password varchar,
age int,
email varchar)
and compaction =3D {'class' : =
'LeveledCompactionStrategy' } 

From: Davide Anastasia <davide.anastasia@gmail.com&= gt;
Reply-To: "user@cassandra.apache.org" = <user@cassandra.apache.org>= ;
Date: Friday, June 7, 2013 = 2:11 AM
To: "user@cassandra.apache.org" = <user@cassandra.apache.org>= ;
Subject: Re: Bulk loader = with Cassandra 1.2.5