Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-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 0435798B5 for ; Fri, 20 Apr 2012 15:13:24 +0000 (UTC) Received: (qmail 50871 invoked by uid 500); 20 Apr 2012 15:13:23 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 50820 invoked by uid 500); 20 Apr 2012 15:13:22 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 50811 invoked by uid 99); 20 Apr 2012 15:13:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2012 15:13:22 +0000 X-ASF-Spam-Status: No, hits=4.7 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.138.229.100] (HELO nm35-vm4.bullet.mail.ne1.yahoo.com) (98.138.229.100) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 20 Apr 2012 15:13:13 +0000 Received: from [98.138.90.57] by nm35.bullet.mail.ne1.yahoo.com with NNFMP; 20 Apr 2012 15:12:52 -0000 Received: from [98.138.89.163] by tm10.bullet.mail.ne1.yahoo.com with NNFMP; 20 Apr 2012 15:12:52 -0000 Received: from [127.0.0.1] by omp1019.mail.ne1.yahoo.com with NNFMP; 20 Apr 2012 15:12:52 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 160042.50551.bm@omp1019.mail.ne1.yahoo.com Received: (qmail 49981 invoked by uid 60001); 20 Apr 2012 15:12:52 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1334934772; bh=d8WVLjyY+x+WDL1z9yBMfoZtUmM5CidW24YPlrtFbB4=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=fcAxzlHd/fInAIyBdL1AvIUvEZcyHLsFEFxC84hRKyyRf9lVEdw8SemCyQXGode8sXh21m/8tnvFFvnYqp0dBocEzSCFWIRm4VMdca70fjEwESJby1lYsC7OjgHK9/zF22ORjsu88gCCVAjAW0aA2Uk31Xrgssm75sOQhmxhIck= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=yOacXdUAS0zX9Fe9gIFoB95ve0cMXqMKjOUtzaLBPltLHc8JGNTodNjcPD+u41JfYbSXRxUVAWQg6ruXXM7pfTEHqrjwzqlHeL11OjuhHOnzq6B8vG3Fw3e/iIZURBwOm4Tc+JM5XJh7rPl5sjpBB0NktUYds42htBspCs3L49I=; X-YMail-OSG: 1577rIMVM1nMCV0miJgib_qUqTBqOA0LiR3XCuh7gCyH217 H7SxJ0YrJ3v3FNYq29wCbNLxU2C1eSznfhBlzOeqrYITDhfxxPfJYNqdI.K3 O4CQdZCs4CgkokVuHBtquA2.rfUe3fiK271TO2cQiWJ1OO6imxC2VGvrXKAe Trgw4ancdJM4zZSXG3vKIBi1Ako1mgmmWPG_ZZiSdqax1BAfE5hiSfAH1CDn bQOGWwzPz4_0IAOY3hJqcYQt_JZVAGiUDiD1RolDqw0ubvyBXqPjJU4n5KkD eJqH74oGtxuYN7CbhoFO8TUSeTxuPw9.7aP9rkptPdMFPlafqYe717mC38x5 l8YhKtJumPGqO9.7uLcbjA6E6qkupCgoSa9_ErBnG15_UODT1HiUGG4mQOMe Tt8FXUrsFDpyLgoXiGbW4J6VZ Received: from [122.164.171.206] by web121203.mail.ne1.yahoo.com via HTTP; Fri, 20 Apr 2012 08:12:51 PDT X-Mailer: YahooMailWebService/0.8.117.340979 References: Message-ID: <1334934771.46854.YahooMailNeo@web121203.mail.ne1.yahoo.com> Date: Fri, 20 Apr 2012 08:12:51 -0700 (PDT) From: Bejoy Ks Reply-To: Bejoy Ks Subject: Re: How you manage inserts into dynamic partitions To: "user@hive.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1087320363-811728659-1334934771=:46854" X-Virus-Checked: Checked by ClamAV on apache.org --1087320363-811728659-1334934771=:46854 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Jagat=0A=A0 =A0 =A0Hive has a beautiful functionality for doing so, Dynamic= Partition Insert.=0AMore details:=0Ahttps://cwiki.apache.org/Hive/dynamicp= artitions.html=0A=0A=0ARegards=0ABejoy KS=0A=0A=0A_________________________= _______=0A From: Jagat =0ATo: user@hive.apache.org = =0ASent: Friday, April 20, 2012 8:38 PM=0ASubject: How you manage inserts i= nto dynamic partitions=0A =0A=0AHello Everyone ,=0A=0AWe have a pig based E= TL process and output of those are processed csv files.=0A=0ANow just want = to learn about best practices on how you guys insert the data in dynamicall= y generated partitions , do you use some shell script ? or some other utili= ty to do the insertion ?=0A=0AHow you handle situations like a csv having d= ata which should go to two separate partitions in hive ? Do you use Pig spi= lt to do this kind of division or outside pig.=0A=0AJust curious to know be= st practices to handle insertion into dynamic partitions , when data has be= en partitioned on time factor ( e,g Month , Week , Day etc)=0A=0AHave a gre= at weekend ahead,=0A=0AThanks and Regards,=0A=0AJagat Singh --1087320363-811728659-1334934771=:46854 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Jagat
=      Hive has a beautiful functionality for doing so, = Dynamic Partition Insert.
More details:
https://cwiki.apache.org/Hive/dynamicpartitions.h= tml

Regards
Bejoy KS


From: Jagat <jagatsingh@gmail.com>
To: user@hive.apache.org Sent: Friday, April 20, = 2012 8:38 PM
Subject: = How you manage inserts into dynamic partitions

=0A
Hello Everyone ,

We have a pig based ETL process and output = of those are processed csv files.

Now just want to learn about best = practices on how you guys insert the data in dynamically generated partitio= ns , do you use some shell script ? or some other utility to do the inserti= on ?
=0A
How you handle situations like a csv having data which shoul= d go to two separate partitions in hive ? Do you use Pig spilt to do this k= ind of division or outside pig.

Just curious to know best practices = to handle insertion into dynamic partitions , when data has been partitione= d on time factor ( e,g Month , Week , Day etc)
=0A
Have a great weeke= nd ahead,

Thanks and Regards,

Jagat Singh
=0A


=
--1087320363-811728659-1334934771=:46854--