Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 EDD0410308 for ; Tue, 9 Apr 2013 17:26:29 +0000 (UTC) Received: (qmail 70116 invoked by uid 500); 9 Apr 2013 17:26:24 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 70024 invoked by uid 500); 9 Apr 2013 17:26:24 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 70016 invoked by uid 99); 9 Apr 2013 17:26:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Apr 2013 17:26:24 +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 harsh@cloudera.com designates 209.85.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-ie0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Apr 2013 17:26:19 +0000 Received: by mail-ie0-f181.google.com with SMTP id 17so8634813iea.40 for ; Tue, 09 Apr 2013 10:25:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding :x-gm-message-state; bh=VbDbychkHitOwf/cAmoewDP215IdxiZw4jGcRrAk+xo=; b=ouxGIAnoMTBfXoZ7RRT8OzGv+/R+eW/P963kmINS7VAsji3fEQUXrpDMtQIEu2+LM5 UO7Sx+mGFdAnyzyQF81xjGNlvrer9bL/98eAqVzth9qfFrSeln27ml0THQs/nAIn4fxJ r/mIT7Uo038t296/4HBjGMF66Pe3PgszwghMwr+frktuM4Zsyr1su/jR0z9plDaIvQAj 6GrTJ2ltT7vTamEsmibctTal38/V97a4L0eZTKDbJsEtleqop/xLq9NjRGhhLhrC9wK2 vJx65HdOvTPOEFYcZ46yGuqSFQr1medY8RUwITtXeUGYIzcJlXCqGw/DbNBY5WHtce99 8Juw== X-Received: by 10.42.107.73 with SMTP id c9mr15634946icp.9.1365528358014; Tue, 09 Apr 2013 10:25:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.135.37 with HTTP; Tue, 9 Apr 2013 10:25:37 -0700 (PDT) In-Reply-To: <5FD6A36D-4F5D-4ECB-83A2-CFBFFB321FA7@gmail.com> References: <3F80E783-79EE-4D10-8E84-C5881B9D56EF@gmail.com> <09674432-2891-4729-979A-3E41D0A7F361@gmail.com> <5FD6A36D-4F5D-4ECB-83A2-CFBFFB321FA7@gmail.com> From: Harsh J Date: Tue, 9 Apr 2013 22:55:37 +0530 Message-ID: Subject: Re: Best format to use To: "" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmD5fWMLf3BamvW8I/G+FsAh1TL7+mxAznaUQb6xJ35rGtpR0p0YrI7Ifb5G0vDu58XE50a X-Virus-Checked: Checked by ClamAV on apache.org Pig and Hive both have support for compressed sequence files. Regarding best format - if its just text log data (i.e. no types/structure) then the best format to keep it in is in text+compress. SequenceFiles help make it splittable but add a small overhead in space and efficiency and none of the good codecs out there are splittable on their own for compression (LZO is good, but needs pre-indexing to be viewed splittable). On Tue, Apr 9, 2013 at 10:21 PM, Mark wrote: > Actually, compressed sequence files may not work with Pig or Hive then ri= ght? > > On Apr 9, 2013, at 9:50 AM, Mark wrote: > >> Forgetting Impala, what format would be best to use with daily logs? >> >> Block-compressed sequence files? >> >> On Apr 8, 2013, at 8:12 PM, Harsh J wrote: >> >>> Hey Mark, >>> >>> Gzip codec creates extension .gzip, not .deflate (which is >>> DeflateCodec). You may want to re-check your settings. >>> >>> Impala questions are best resolved at its current user and developer >>> community at https://groups.google.com/a/cloudera.org/forum/#!forum/imp= ala-user. >>> Impala does currently support LZO (and also Indexed LZO) compressed >>> text files however, so you may want to try that as its splittable >>> (compared to Gzip ones). >>> >>> On Tue, Apr 9, 2013 at 5:18 AM, Mark wrote: >>>> Trying to determine what the best format to use for storing daily logs= . We recently switch from snappy (.snappy) to gzip (.deflate) but I'm wonde= ring if there is something better? Our main clients for these daily logs ar= e pig and hive using an external table. We were thinking about testing out = impala but we see that it doesn't work with compressed text files. Any sugg= estions? >>>> >>>> Thanks >>> >>> >>> >>> -- >>> Harsh J >> > --=20 Harsh J