crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Reid (JIRA)" <>
Subject [jira] [Commented] (CRUNCH-132) Add configurable behavior for when a pipeline output directory already exists
Date Mon, 11 Feb 2013 08:03:12 GMT


Gabriel Reid commented on CRUNCH-132:


Looks good to me -- I was worried about how it would react if you did something like the following:

    pipeline.write(pcollect1, target, WriteMode.APPEND); 
    pipeline.write(pcollect2, target, WriteMode.OVERWRITE); 

Situations like that seem to be caught immediately with an exception being thrown, which is
what we want I think.

> Add configurable behavior for when a pipeline output directory already exists
> -----------------------------------------------------------------------------
>                 Key: CRUNCH-132
>                 URL:
>             Project: Crunch
>          Issue Type: Improvement
>    Affects Versions: 0.4.0
>            Reporter: Dave Beech
>            Assignee: Josh Wills
>         Attachments: CRUNCH-132.patch, CRUNCH-132-proto.patch, CRUNCH-132-wm2.patch,
> Usually when you run a mapreduce job and the output directory already exists, the job
fails (won't start). A Crunch job does run, but results in the output data being duplicated
in the output directory with numbered files that follow on from the previous run. 
> Example
> Run 1, single reducer /output -> /output/part-r-00000
> Run 2, single reducer /output -> /output/part-r-00000, /output/part-r-00001
> I didn't realise I'd run my job twice, so when I looked in the directory it seemed that
there had been 2 reducers and somehow the output had been generated twice, which was confusing.

> I realise this may be by design, but it feels wrong to me. I'd prefer if the behaviour
of a standard mapreduce job was preserved.  

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message