[ 
https://issues.apache.org/jira/browse/OOZIE-2768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Abhishek Bafna updated OOZIE-2768:
----------------------------------
    Comment: was deleted

(was: Oozie action directory: 
{code}
String name = getWorkflow().getId() + "/" + action.getName() + "--" + 
action.getType();
{code}

The cleanup of the action directory is not happening correctly. Though Oozie 
workflow cleanup the directory when the action completes or workflow (or 
action) is killed.

During the workflow action setup Oozie checks for the existence for the 
directory and if not present then creates them. The 'output' is set as part of 
the launcher configuration.

{code}
launcherConf.set("mapred.output.dir", new Path(actionDir, "output").toString());
{code}

We should do either of these:
* In case when the action directory is already present, It should cleanup and 
re-create the action directory.
* While setting up the 'output' directory check its existence and delete if 
already exists.

I would prefer the first approach. Thanks.)

> Oozie workflow goes into suspended state with  JA009: Output directory 
> already exists
> -------------------------------------------------------------------------------------
>
>                 Key: OOZIE-2768
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2768
>             Project: Oozie
>          Issue Type: Bug
>    Affects Versions: 4.3.0
>            Reporter: sandeep samudrala
>            Assignee: Abhishek Bafna
>
> At times oozie workflow action fails with following error.
>  JA009: Output directory 
> /user/test/oozie-oozi/0397117-160802162641301-oozie-oozi-W/action--java/output
>  already exists



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to