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 >> Custom StoreFunc for pig 0.7


Copy link to this message
-
Re: Custom StoreFunc for pig 0.7
See MultiStorage in piggybank -
http://pig.apache.org/docs/r0.9.1/api/org/apache/pig/piggybank/storage/MultiStorage.html
On 10/21/11 4:56 PM, felix gao wrote:
> Hi all,
>
> I am wondering if anyone have some examples on how to write a storefunc that
> will take a look at some of the tuple's value and construct the output
> directory based on that.
>
> For example if my tuple have the field ("2011-01-01", 123, xyz) I would like
> like to construct an output directory like "/user/output/2011-01-01/123" and
> the content will be
> 2011-01-01<TAB>  123<TAB>  xyz
>
>
> Thanks,
>
> Felix
>
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