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 ADC22D60E for ; Thu, 1 Nov 2012 08:01:20 +0000 (UTC) Received: (qmail 90869 invoked by uid 500); 1 Nov 2012 08:01:18 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 90735 invoked by uid 500); 1 Nov 2012 08:01:18 -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 90685 invoked by uid 99); 1 Nov 2012 08:01:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 08:01:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of chou_ei@cyberagent.co.jp designates 210.134.177.71 as permitted sender) Received: from [210.134.177.71] (HELO ipl2.aams0.jp) (210.134.177.71) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2012 08:01:08 +0000 Received: from PC-7418.local (124x35x68x250.ap124.ftth.ucom.ne.jp [124.35.68.250]) (authenticated bits=0) by ipl2.aams0.jp (Sentrion-MTA-4.0.2/Switch-3.2.5) with ESMTP id qA180iag002546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 1 Nov 2012 17:00:44 +0900 Message-ID: <50922C2C.9030404@cyberagent.co.jp> Date: Thu, 01 Nov 2012 17:00:44 +0900 From: =?UTF-8?B?5by144CA552/?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: Data migration between clusters References: <508FB773.2090001@cyberagent.co.jp> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AAMS0-Virus-Status: clean X-AAMS0-Virus-Status: clean X-Aams0-Archive-Original-S: YES X-Virus-Checked: Checked by ClamAV on apache.org Hi Rob, Thank you for your reply. Our scenario is like this, we have 3 clusters, each has 1 or 2 keyspaces in it, and each cluster has 3 nodes. Now we're considering integrating these 3 clusters of 9 nodes to a single cluster of 9 nodes. This new cluster will contain all keyspaces and their data the former 3 clusters have. The replication factor, which is 3 now, will not be changed during this migration. We tried using sstableloader which didn't work well. Maybe we did it in a wrong way. It looks like the way of migrating data you suggested would solve our problem, we'll try it out by refering the link you gave in your mail. Thanks a lot again for your precious information, Ray (12/11/01 2:43), Rob Coli wrote: > On Tue, Oct 30, 2012 at 4:18 AM, 張 睿 wrote: >> Does anyone here know if there is an efficient way to migrate multiple >> cassandra clusters' data >> to a single cassandra cluster without any dataloss. > Yes. > > 1) create schema which is superset of all columnfamilies and all keyspaces > 2) if all source clusters were the same fixed number of nodes, create > a new cluster with the same fixed number of nodes > 3) nodetool drain and shut down all nodes on all participating clusters > 4) copy sstables from old clusters, maintaining that data from source > node [x] ends up on target node [x] > 5) start cassandra > > However without more details as to your old clusters, new clusters, > and availability requirements, I can't give you a more useful answer. > > Here's some background on bulk loading, including "copy-the-sstables." > > http://palominodb.com/blog/2012/09/25/bulk-loading-options-cassandra > > =Rob > -- Ray Zhang Cyberagent.co