You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Yulia Tolskaya <yu...@magnetic.is> on 2012/01/24 20:36:20 UTC

Store into existing file

Hello Pig Users,
I was wondering what the best way to store my output into an existing file would be.
When I was looking on line I found this jira:

https://issues.apache.org/jira/browse/PIG-259

It looks like there was almost an "overwrite" keyword, but it was never finished… It would have been very useful!

Yulia

Re: Store into existing file

Posted by Thejas Nair <th...@hortonworks.com>.
You can use rmf.

For example -
============
rmf y; -- clears output

l = load 'x';
store l into 'y';
============

-Thejas



On 1/24/12 11:36 AM, Yulia Tolskaya wrote:
> Hello Pig Users,
> I was wondering what the best way to store my output into an existing file would be.
> When I was looking on line I found this jira:
>
> https://issues.apache.org/jira/browse/PIG-259
>
> It looks like there was almost an "overwrite" keyword, but it was never finished… It would have been very useful!
>
> Yulia
>