hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jingjung Ng <jingjun...@gmail.com>
Subject Re: Hive query result in sequence file
Date Wed, 25 Jan 2012 18:47:12 GMT
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 <aniket486@gmail.com>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 <jingjungng@gmail.com>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"
>

Mime
View raw message