Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> Hive query result in sequence file


Copy link to this message
-
Re: Hive query result in sequence file
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 <[EMAIL PROTECTED]> 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"