Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 52611 invoked from network); 6 May 2010 14:26:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 May 2010 14:26:10 -0000 Received: (qmail 95814 invoked by uid 500); 6 May 2010 14:26:09 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 95793 invoked by uid 500); 6 May 2010 14:26:09 -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 95785 invoked by uid 99); 6 May 2010 14:26:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 14:26:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 May 2010 14:26:03 +0000 Received: by wwi17 with SMTP id 17so4475wwi.31 for ; Thu, 06 May 2010 07:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=WY7sTiT8oYWn6mCusgXRyCXPrYkjxjQY81McHQb21J8=; b=l9J8lpWTGVqt2qN5VJMqqlP+tQpDyAmrNqIm187pkW6CO6cj+KeYy8iqX7ls48394V lgqlJaCcdttaH8SG5QRRu2ZU8rhSpu5hM/m/ewT7DZSfQltHkYMePoLjzfSzx2CHP0am KYhRmhFe8xNFDjGJSZKfwN5S2ST6Q2xOXHLMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=kP8XQgEDGZZIiWFt2U0t/aVpkhQI9tTH2JAlvZbEl7o5N5amEWGPSJOhEQpzadTKH0 0uEeY3/+rJdl37UXWhZw4KWpXxfOvz6gdOsVzTE8WdHF2s2THX4BW3lsgDop4zIk439c Uklly5T1LPJTetNE3OW49OIHXgaKDbCZLNNic= Received: by 10.227.142.71 with SMTP id p7mr4279859wbu.201.1273155943143; Thu, 06 May 2010 07:25:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.22.10 with HTTP; Thu, 6 May 2010 07:25:22 -0700 (PDT) In-Reply-To: <007e01caed1a$e3969670$aac3c350$@com> References: <007e01caed1a$e3969670$aac3c350$@com> From: Jonathan Ellis Date: Thu, 6 May 2010 09:25:22 -0500 Message-ID: Subject: Re: How to initialize the Cassandra To: user@cassandra.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org The simplest way is to just use thrift batch_mutate. If Cassandra CPU is your bottleneck then using the binary load method from StorageProxy can help (see contrib/bmt_example). If Casssandra disk or network is your bottleneck then binary load won't really help. On Thu, May 6, 2010 at 7:51 AM, Dop Sun wrote: > Hi, > > > > I just discovered that the json file exported by sstable2json contains mo= re > than the data itself, like deletedAt values. > > > > I=92m thinking whether there is a tool can import some initial data? > > > > When we are doing the typical RDBMS system, this is how we are doing: > > 1)=A0=A0=A0=A0=A0 Define the schema > > 2)=A0=A0=A0=A0=A0 Initialize the database with initial data using Insert = statements > > 3)=A0=A0=A0=A0=A0 Running the application > > > > If following these steps in Cassandra: > > 1)=A0=A0=A0=A0=A0 Define the schema: this is done by define the KeySpace > > 2)=A0=A0=A0=A0=A0 Initialize the data with initial data: =A0This is curre= ntly not there. > We can import data exported from existing installation, but not from noth= ing > > 3)=A0=A0=A0=A0=A0 Running the application > > > > Thanks, > > Regards, > > Dop --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com