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 >> STORE INTO replacing contents?


Copy link to this message
-
Re: STORE INTO replacing contents?
I noticed this too. I could not find any documentation regd how return code
from a command like 'fs' or 'rmf' or some shell command is.

Replace 'fs -rmr' with rmf for your case.

Raghu.

On Tue, Jul 19, 2011 at 12:27 AM, Chris Rosner <[EMAIL PROTECTED]> wrote:

> Greetings,
>
> I'm trying to upgrade from 0.7.0 to 0.8.1, but am having some trouble
> with existing scripts.
>
> The basic problem I'm trying to solve is storing an alias in to hdfs,
> overwriting data that may already exist at that path.
>
> I've been using this pattern in 0.7.0:
>
> fs -rmr /some/output/path/
> store a into '/some/output/path/' using PigStorage('\t');
>
> This works fine whether or not the path exists in hdfs on 0.7.0, but
> 0.8.1 throws an IOException at the beginning of the script, and fails
> to proceed.
>
> Is there a way to supress any error returned by the 'fs -rmr', or is
> there a way to make STORE replace existing contents (if any)?
>
> Thanks!
>
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