public class CascadingUtils {
public static void identityFlow(Tap source, Tap sink, Fields selectFields) {
Pipe pipe = new Pipe("pipe");
pipe = new Each(pipe, selectFields, new Identity());
Flow flow = new HadoopFlowConnector().connect(source, sink, pipe);
flow.complete();
}
// Mark the output dir of the job for which the context is passed.
public static void markSuccessfulOutputDir(Path path, JobConf conf) throws IOException {
FileSystem fs = FileSystem.get(conf);