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 3FD3D637D for ; Wed, 13 Jul 2011 17:12:24 +0000 (UTC) Received: (qmail 68219 invoked by uid 500); 13 Jul 2011 17:12:21 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 68177 invoked by uid 500); 13 Jul 2011 17:12:21 -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 68169 invoked by uid 99); 13 Jul 2011 17:12:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 17:12:21 +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 (nike.apache.org: domain of sylvain@datastax.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jul 2011 17:12:14 +0000 Received: by yxp4 with SMTP id 4so3109801yxp.31 for ; Wed, 13 Jul 2011 10:11:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.185.134 with SMTP id u6mr1946234yhm.76.1310577113172; Wed, 13 Jul 2011 10:11:53 -0700 (PDT) Received: by 10.236.108.177 with HTTP; Wed, 13 Jul 2011 10:11:53 -0700 (PDT) X-Originating-IP: [24.6.246.65] In-Reply-To: <654A67E918314D418D96AC894A5B0F0D045EC4@ALVMBXW01.prod.quest.corp> References: <654A67E918314D418D96AC894A5B0F0D045DF3@ALVMBXW01.prod.quest.corp> <654A67E918314D418D96AC894A5B0F0D045E71@ALVMBXW01.prod.quest.corp> <654A67E918314D418D96AC894A5B0F0D045EA6@ALVMBXW01.prod.quest.corp> <654A67E918314D418D96AC894A5B0F0D045EC4@ALVMBXW01.prod.quest.corp> Date: Wed, 13 Jul 2011 17:11:53 +0000 Message-ID: Subject: Re: BulkLoader From: Sylvain Lebresne To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Also note that if you have a cassandra node running on the local node from which you want to bulk load sstables, there is a JMX (StorageService->bulkLoad) call to do just that. May be simpler than using sstableloader if that is what you want to do. -- Sylvain On Wed, Jul 13, 2011 at 3:46 PM, Stephen Pope wrot= e: > =A0Ahhh..ok. Thanks. > > -----Original Message----- > From: Jonathan Ellis [mailto:jbellis@gmail.com] > Sent: Wednesday, July 13, 2011 11:35 AM > To: user@cassandra.apache.org > Subject: Re: BulkLoader > > Because it's hooking directly into gossip, so the local instance it's > ignoring is the bulkloader process, not Cassandra. > > You'd need to run the bulkloader from a different IP, than Cassandra. > > On Wed, Jul 13, 2011 at 8:22 AM, Stephen Pope wr= ote: >> =A0Fair enough. My original question stands then. :) >> >> =A0Why aren't you allowed to talk to a local installation using BulkLoad= er? >> >> -----Original Message----- >> From: Jonathan Ellis [mailto:jbellis@gmail.com] >> Sent: Wednesday, July 13, 2011 11:06 AM >> To: user@cassandra.apache.org >> Subject: Re: BulkLoader >> >> Sure, that will work fine with a single machine. =A0The advantage of >> bulkloader is it handles splitting the sstable up and sending each >> piece to the right place(s) when you have more than one. >> >> On Wed, Jul 13, 2011 at 7:47 AM, Stephen Pope w= rote: >>> =A0I think I've solved my own problem here. After generating the sstabl= e using json2sstable it looks like I can simply copy the created sstable in= to my data directory. >>> >>> =A0Can anyone think of any potential problems with doing it this way? >>> >>> -----Original Message----- >>> From: Stephen Pope [mailto:Stephen.Pope@quest.com] >>> Sent: Wednesday, July 13, 2011 9:32 AM >>> To: user@cassandra.apache.org >>> Subject: BulkLoader >>> >>> =A0I'm trying to figure out how to use the BulkLoader, and it looks lik= e there's no way to run it against a local machine, because of this: >>> >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Set hosts =3D Gossiper.inst= ance.getLiveMembers(); >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0hosts.remove(FBUtilities.getLocalAddress= ()); >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (hosts.isEmpty()) >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0throw new IllegalStateException(= "Cannot load any sstable, no live member found in the cluster"); >>> >>> =A0Is this intended behavior? May I ask why? We'd like to be able to ru= n it against the local machine. >>> >>> =A0Cheers, >>> =A0Steve >>> >> >> >> >> -- >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of DataStax, the source for professional Cassandra support >> http://www.datastax.com >> > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of DataStax, the source for professional Cassandra support > http://www.datastax.com >