Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 23238 invoked from network); 10 Jun 2010 21:31:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Jun 2010 21:31:56 -0000 Received: (qmail 72206 invoked by uid 500); 10 Jun 2010 21:31:55 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 72185 invoked by uid 500); 10 Jun 2010 21:31:55 -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 72177 invoked by uid 99); 10 Jun 2010 21:31:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jun 2010 21:31:55 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.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, 10 Jun 2010 21:31:50 +0000 Received: by wwc33 with SMTP id 33so260902wwc.31 for ; Thu, 10 Jun 2010 14:31:27 -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=g7Tr1bE0b4H41P9YExIiDZyNhH1plBLbJgUHobutLHE=; b=Yspg+4pctag9POwloky0lSJkv+fhaLQ2di/wy8ZeG8qEyuDTmy2RzEsmH+sjiTlEIi sx6mC6UD/O5MJJKfot0ePu6YbBCpdbH5Za+6xKI97j4A56ihkLWMTnoH+hF/tTaJwwHB KGiFSZQuojo2hqbtGSGbTDTsIX81N5mLMjB4I= 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=AyRujE+r4ha2+yZ5li+NbwQVSveDZ50lAiXRuqJZDi33NZUpygRbZODyRILf97SmbU IH8+wJpOjkO06P1mMwQMlIxZBp0u5VkZBBhfSjqmhNSK8eNogdD45KLyC8EJPGdJSTxs ZeVQkT12BJ+mKNeizXrDLzAFh86WOXVPfpG+8= Received: by 10.227.157.142 with SMTP id b14mr824715wbx.183.1276205487548; Thu, 10 Jun 2010 14:31:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.17.197 with HTTP; Thu, 10 Jun 2010 14:29:33 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Thu, 10 Jun 2010 14:29:33 -0700 Message-ID: Subject: Re: Granularity SSTables. To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Only if your clusters have the same number of nodes, with the same tokens. Trying to get too clever is not usually advisable. On Thu, Jun 10, 2010 at 3:54 AM, xavier manach wrote: > Hi. > > =A0I try to understand tricks that I can use with the SSTables, for > faster manipulation of datas in clusters. > > I learn I how copy a keyspaces from data directories to a new node and > change replicationfactor (thx Jonathan). > > If I understood, Each SSTable have 3 files : > =A0ColumnFamily-ID-Datas.db > =A0ColumnFamily-ID-Index.db > =A0ColumnFamily-ID-Filter.db > > =A0If I want merge datas from 2 clusters, with differents keys (each > key is only in one cluster) but with the same ColumnFamily. > Can I copy all the files from SSTables with the same methode ? >> 1. nodetool drain & stop original node >> 2. copy everything =A0***files sstables*** in data/ directories (but not= system keyspace!) to new node >> 3. restart and autobootstrap=3Dfalse [the default] > > Thx. > > > > On Tue, Jun 8, 2010 at 7:12 AM, xavier manach wrote: >> Hi. >> >> =A0 I have a cluster with only 1 node with a lot of datas (500 Go) . >> =A0 I want add a new node with the same datas (with a ReplicationFactor >> 2) >> >> The method normal is : >> stop node. >> add a node. >> change replication factor to 2. >> start nodes >> use nodetool repair >> >> =A0 But , I didn't know if this other method is valid, and if it's can >> be faster : >> stop nodes. >> copy all SSTables >> change replication factor. >> start nodes >> and >> use nodetool repair >> >> =A0 Have you an idea for the faster valid method ? >> >> Thx. >> > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com