Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 29883 invoked from network); 11 Mar 2011 17:30:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Mar 2011 17:30:48 -0000 Received: (qmail 2558 invoked by uid 500); 11 Mar 2011 17:30:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 2529 invoked by uid 500); 11 Mar 2011 17:30:46 -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 2521 invoked by uid 99); 11 Mar 2011 17:30:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 17:30:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeremy.hanna1234@gmail.com designates 209.85.160.172 as permitted sender) Received: from [209.85.160.172] (HELO mail-gy0-f172.google.com) (209.85.160.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2011 17:30:37 +0000 Received: by gyf3 with SMTP id 3so124840gyf.31 for ; Fri, 11 Mar 2011 09:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=Q/nUexVLIbaJn8hngg99BaVisGp5tn1BZPRKvr8vdbc=; b=LemOv5MHGAzrPGUG334DgmftDBTIdMZIahKqC4lUplztdzSZPOBTONAn5P4Ywu8X7w Nc3xd/ojRruTQO0PPzi3Cj/vXo91vB3ZQr6EMgMLMCskOnEGvaQj/+UPjtXDV6PdFwLu sF38Lkw7MfLija3V1O2+0B04c6QMmvrohLMCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=hwaFBawb5wPCoCg93syIDXZOLcLye8ZFgWili+1ePcqK/sc3X4FObb4nMRvqKtKfE0 cC/0yoqJloSB5q/9QMOCT6a0Pew7+pWApJe+SY7PbcpuNYRpL4hODJy3pxiHIykRKHQQ 1uPkhi/sO4pKj+eQejRn2P17qufpz4tjYvmYE= Received: by 10.150.158.12 with SMTP id g12mr2967992ybe.123.1299864616825; Fri, 11 Mar 2011 09:30:16 -0800 (PST) Received: from [172.26.242.91] ([207.71.25.99]) by mx.google.com with ESMTPS id u37sm183741yba.7.2011.03.11.09.30.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Mar 2011 09:30:15 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: Pig output to Cassandra From: Jeremy Hanna In-Reply-To: <4D79B664.6080709@gmail.com> Date: Fri, 11 Mar 2011 11:30:14 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <6A71ECA5-658A-4740-91E6-D2C29CF7F798@gmail.com> References: <4D79A265.2080303@gmail.com> <4D79B664.6080709@gmail.com> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1082) X-Virus-Checked: Checked by ClamAV on apache.org Yep - it's usable and separate so you should be able to download = 0.7-branch and build the jar and use it against a 0.7.3 cluster. I've = been using it against a 0.7.2 cluster actually. http://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7/ To use it, check out the readme in the contrib/pig directory in the 0.7 = branch. One trivial example of copying one column family to another is: rows =3D LOAD 'cassandra://Keyspace1/Standard1' USING = CassandraStorage(); STORE rows INTO 'cassandra://Keyspace1/Standard2' USING = CassandraStorage(); using the contrib/pig/pig_cassandra script (tx to brandon for that = example). Also make sure that Standard2 exists too. If you have any other questions talk to jeromatron (me), driftx = (brandon), or mvdir (eldon) in #cassandra or #hadoop-pig on IRC on = freenode. On Mar 10, 2011, at 11:43 PM, Mark wrote: > Sweet! This is exactly what I was looking for and it looks like it was = just resolved. >=20 > Are there any working examples or documentation on this feature? >=20 > Thanks >=20 > On 3/10/11 8:57 PM, Matt Kennedy wrote: >> On its way... https://issues.apache.org/jira/browse/CASSANDRA-1828 >>=20 >> On Mar 10, 2011, at 11:17 PM, Mark wrote: >>=20 >>> I thought I read somewhere that Pig has an output format that can = write to Cassandra but I am unable to find any documentation on this. Is = this possible and if so can someone please point me in the right = direction. Thanks