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 DF33D98EF for ; Wed, 25 Jan 2012 18:47:41 +0000 (UTC) Received: (qmail 46631 invoked by uid 500); 25 Jan 2012 18:47:40 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 46536 invoked by uid 500); 25 Jan 2012 18:47:40 -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 46528 invoked by uid 99); 25 Jan 2012 18:47:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 18:47:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jingjungng@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-ww0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2012 18:47:33 +0000 Received: by wgbds10 with SMTP id ds10so4330213wgb.23 for ; Wed, 25 Jan 2012 10:47:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vec5F6IWUZj4YcKIxLPKyf9I1bedq8op/jW+DYYv6Uc=; b=tislyw1euPH2ksLK7g45eacrKml7Tn7JAmmIZnWP74D273hZN8yclR9lWGQD/K6tsl Y8gaeYVbhsKlsj+O/GNHMLDUF4cja4/f44p7y7tFEg2R7VDQQ+/LM25fFSfSyFfPed6h QDjJJvsMrzl/iyyLXZbwrndXjyMfvwZUh7tJ4= MIME-Version: 1.0 Received: by 10.180.93.193 with SMTP id cw1mr30407473wib.5.1327517232355; Wed, 25 Jan 2012 10:47:12 -0800 (PST) Received: by 10.216.185.204 with HTTP; Wed, 25 Jan 2012 10:47:12 -0800 (PST) In-Reply-To: References: Date: Wed, 25 Jan 2012 10:47:12 -0800 Message-ID: Subject: Re: Hive query result in sequence file From: jingjung Ng To: user@hive.apache.org Content-Type: multipart/alternative; boundary=f46d043bdede11590604b75eb12c --f46d043bdede11590604b75eb12c Content-Type: text/plain; charset=ISO-8859-1 Thanks Aniket. I am pretty new to hive, any java example (serde) for archieving this ? -Andrew On Wed, Jan 25, 2012 at 12:12 AM, Aniket Mokashi wrote: > You will have to do your own serde.. > > Hive can write it sequencefile but it will be Text with NULL(bytewritable) > key. > > Thanks, > Aniket > > > On Tue, Jan 24, 2012 at 11:41 PM, jingjung Ng wrote: > >> Hi, >> >> I have following hive query (pseudo hive query code) >> >> select name, address, phone from t1 join t2 >> >> Executing above query will end up file stored in the format of name, >> address, phone format on the fie system (hdfs or local). >> >> However I'd like to write to either to a sequence file (key: name, >> value: address and phone). >> >> Is this possible, if so how could I do this ? >> >> >> Thank you. >> >> JingJung >> > > > > -- > "...:::Aniket:::... Quetzalco@tl" > --f46d043bdede11590604b75eb12c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Aniket.

I am pretty new to hive, any java example= (serde) =A0for archieving this ?

-Andrew
=
On Wed, Jan 25, 2012 at 12:12 AM, Aniket Mok= ashi <aniket486= @gmail.com> wrote:
You will have to do your own serde..
Hive can write it sequencefile but it will be Text with NULL(by= tewritable) key.

Thanks,
Aniket


=
On Tue, Jan 24, 2012 at 11:41 PM, jingjung Ng <jingjungng@gmail.com> wrote:
Hi,

I have following hive query (pseu= do hive query code)

=A0select name, address, phone from t1 join t2
Executing above query will end up file stored in the format of name, ad= dress, phone format on the fie system (hdfs or local).

However=A0 I'd like to write to either to a sequence file (key: nam= e, value: address and phone).

Is this possible, if so how could I do= this ?


Thank you.

JingJung



--
"...:::An= iket:::... Quetzalco@tl"

--f46d043bdede11590604b75eb12c--