You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Example with the new API

Job job = new Job();
mapDriver = MapDriver.newMapDriver(mapper).withConfiguration(job.getConfiguration());
job.setInputFormatClass(AvroKeyInputFormat.class);
job.setOutputFormatClass(AvroKeyOutputFormat.class);
AvroJob.setInputKeySchema(job, MyAvro.SCHEMA$);
AvroJob.setMapOutputKeySchema(job, MyAvro.SCHEMA$);
AvroJob.setOutputKeySchema(job, MyAvro.SCHEMA$);
  • No labels