gopivotal.com/files/media/logos/pivotal-logo-email-signature.png]
On Mon, Mar 3, 2014 at 11:49 PM, John Pauley
mailto:john.pau...@threattrack.com>> wrote:
This is cross posted to avro-user list
(http://mail-archives.apache.org/mod_mbox/avro-user/201402.mbox/%3ccf3612f6.94d2%25john.pau.
mReduceTasks(0);
AvroJob.setOutputKeySchema(job, schema);
AvroMultipleOutputs.addNamedOutput(job, "avro",
AvroKeyOutputFormat.class, schema);
FileInputFormat.addInputPath(job, new Path(("/tmp/avrotest/input")));
FileOutputFormat.setOutputPath(job, new Path("/tmp/avrotest/output"));
return (job.waitForCompletion(true) ? 0 : 1);
}
public static void main(String[] args) throws Exception {
int exitCode = ToolRunner.run(new AvroContainerFileDriver(), args);
System.exit(exitCode);
}
}
Thanks,
John Pauley
Sr. Software Engineer
ThreatTrack Security