Unmesha,
Here’s a better way to go about the output directory deletion.
Pcollection.write(new Target(“/tmp/file”), WriteMode.OVERWRITE);
Using that WriteMode will force it to delete the output directory if it exists.
-Dave
From: unmesha sreeveni [mailto:[email protected]]
Sent: Thursday, February 19, 2015 12:02 AM
To: user
Subject: Re: Delete output folder automatically in CRUNCH (FlumeJava)
Thanks David.
This email is intended only for the use of the individual(s) to whom it is
addressed. If you have received this communication in error, please immediately
notify the sender and delete the original email.