Skip to content

Commit

Permalink
don't cleanup a Tap if not Hfs
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensel committed Apr 21, 2009
1 parent 1ad36fe commit f38396c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/cascading/tap/hadoop/Hadoop18TapUtil.java
Expand Up @@ -39,6 +39,7 @@

package cascading.tap.hadoop;

import cascading.tap.Hfs;
import cascading.tap.Tap;
import org.apache.hadoop.fs.FileStatus;
import org.apache.hadoop.fs.FileSystem;
Expand Down Expand Up @@ -163,7 +164,9 @@ public static void commitTask( JobConf conf ) throws IOException
*/
public static void cleanupTap( JobConf conf, Tap tap ) throws IOException
{
cleanTempPath( conf, tap.getPath() );
// don't clean if not hfs
if( tap instanceof Hfs )
cleanTempPath( conf, tap.getPath() );
}

/**
Expand Down

0 comments on commit f38396c

Please sign in to comment.