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 0A9DB470C for ; Wed, 15 Jun 2011 17:36:16 +0000 (UTC) Received: (qmail 31688 invoked by uid 500); 15 Jun 2011 17:36:13 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 31668 invoked by uid 500); 15 Jun 2011 17:36:13 -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 31660 invoked by uid 99); 15 Jun 2011 17:36:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 17:36:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeremy.hanna1234@gmail.com designates 209.85.213.44 as permitted sender) Received: from [209.85.213.44] (HELO mail-yw0-f44.google.com) (209.85.213.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jun 2011 17:36:05 +0000 Received: by ywp31 with SMTP id 31so533057ywp.31 for ; Wed, 15 Jun 2011 10:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=mXsNE+elv9L4PclLihoYEOSadszso7GJfS6teXy5qtY=; b=tSHc9BCBcWCg/WZI8MxvRaNFKUsf7Ucy3JLBmC3810GaRtRfgwFHYz6AV+PvVkexDC 8NfuMrkm7Ut5SC8cbZNv1PAMxOQL6sB4ONLG48qA1NBHuEg44TfuYdzw/9zpslsYQkgv Wk7W5LHzvOvGY+bq3NRVJW4HGwUQqAdsWsvwo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=ezs6dqF0wcRcmtIhTqcwQdjAU3XlSnk2LMvyGzxOpz7gLH1J21eeBwwiFjYknlxA4A fIf9FeamVA1bnI9e68JpAln3SBC3VZ0OqYWn1Rfd1JOj39aemEgpc3anShB/Wxm9k02h KtyYQapmXGrdnGiswVgfXcTalKTC889gdaxiI= Received: by 10.236.26.103 with SMTP id b67mr1107869yha.331.1308159345058; Wed, 15 Jun 2011 10:35:45 -0700 (PDT) Received: from [172.31.132.100] ([64.27.47.116]) by mx.google.com with ESMTPS id i26sm375502yhn.0.2011.06.15.10.35.43 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Jun 2011 10:35:44 -0700 (PDT) From: Jeremy Hanna Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: useful little way to run locally with (pig|hive) && cassandra Date: Wed, 15 Jun 2011 12:35:42 -0500 Message-Id: To: user@cassandra.apache.org, user@pig.apache.org, Brisk Users Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) We started doing this recently and thought it might be useful to others. Pig (and Hive) have a sample function that allows you to sample data = from your data store. In pig it looks something like this: mysample =3D SAMPLE myrelation 0.01; One possible use for this, with pig and cassandra is to solve a = conundrum of testing locally. We've wondered how to do this so we = decided to do sampling of a column family (or set of CFs), store into = HDFS (or CFS), download locally, then import into your local Cassandra = node. That gives you real data to test against with pig/hive or for = other purposes. That way, when you're flying out to the Hadoop Summit or the Cassandra = SF event, you can play with real data :). Maybe others have been doing this for years, but if not, we're finding = it handy. Jeremy=