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

Switch to Threaded View
Pig, mail # user - Sequence File Loader


Copy link to this message
-
Re: Sequence File Loader
Raghu Angadi 2011-11-04, 22:08
SequenceFileLoader in ElephantBird is very generic. Lets you load/store any
writables.

https://github.com/kevinweil/elephant-bird/blob/master/src/java/com/twitter/elephantbird/pig/load/SequenceFileLoader.java

For arbitrary Writable, you can use "GenericWritableConverter" and it
returns raw writable bytes (you can process them in your UDF).

describe your use case here if you need more help.

Raghu.

On Tue, Nov 1, 2011 at 4:44 PM, Gayatri Rao <[EMAIL PROTECTED]> wrote:

> Does any one have an example of how to use SequenceFileLoader for writable
> objects other than IntWritable, LongWritable, Text etc.
>
>
> Thanks
> Gayatri
>