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 A178FCC2C for ; Sat, 19 May 2012 17:13:13 +0000 (UTC) Received: (qmail 83320 invoked by uid 500); 19 May 2012 17:13:11 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 83292 invoked by uid 500); 19 May 2012 17:13:11 -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 83283 invoked by uid 99); 19 May 2012 17:13:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 May 2012 17:13:11 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jbellis@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bk0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 May 2012 17:13:06 +0000 Received: by bkty8 with SMTP id y8so3625221bkt.31 for ; Sat, 19 May 2012 10:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=pTGC/E37rEtYES9L0UqVv1BuVbwdOjeHamxLBUxAjN8=; b=OZgg/xqb1aBtgMLjYjwd+gsZjgwvQhlQqISEHr/YkYUvbOf6qzS88FPiIuNoYqtgfp uGkvRQ+GwcRZSh3mGfc081/hfaf0EqwXAJ+zKMu5rxujJMifm/VTbgcsrLbm7SXj8Q1B 9/aJ5ylp6Ac+ro++FVUl4I6vqQoc5q3aJEXm9cLl/uZvtuuAbjlHepcE86oNNbUxVgXf t1LybPVsQxTvWdsjBoawAsy0y7OGTSizhTh4zX/B18YMvoVCA9aOrmIVgxXT0L4E78fK jlpkMXOCnZMDR2f2P6wmO0YGtfuO2XSPEIbpnzQHaJa0VQ8P8xKmNJfYs3T8YB0VlaLR qUSA== Received: by 10.204.154.140 with SMTP id o12mr5494686bkw.139.1337447565691; Sat, 19 May 2012 10:12:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.33.203 with HTTP; Sat, 19 May 2012 10:12:25 -0700 (PDT) In-Reply-To: References: From: Jonathan Ellis Date: Sat, 19 May 2012 12:12:25 -0500 Message-ID: Subject: Re: Migrating a column family from one cluster to another To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Better: use bin/sstableloader, which will copy exactly the right ranges of data to the new cluster. On Fri, May 18, 2012 at 3:39 PM, Rob Coli wrote: > On Thu, May 17, 2012 at 9:37 AM, Bryan Fernandez wrote: >> What would be the recommended >> approach to migrating a few column families from a six node cluster to a >> three node cluster? > > The easiest way (if you are not using counters) is : > > 1) make sure all filenames of sstables are unique [1] > 2) copy all sstablefiles from the 6 nodes to all 3 nodes > 3) run a "cleanup" compaction on the 3 nodes > > =Rob > [1] https://issues.apache.org/jira/browse/CASSANDRA-1983 > > -- > =Robert Coli > AIM>ALK - rcoli@palominodb.com > YAHOO - rcoli.palominob > SKYPE - rcoli_palominodb -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of DataStax, the source for professional Cassandra support http://www.datastax.com