This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems file an INFRA jira ticket please.

Child pages
  • MRUnit with Avro

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Example with the new API

No Format
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$);