Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 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
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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB