outputPath.getFileSystem(job.getConfiguration()).delete(outputPath);
FileOutputFormat.setOutputPath(job, outputPath);
Assert.assertTrue(job.waitForCompletion(true));
FileSystem fileSystem = FileSystem.get(job.getConfiguration());
FileStatus[] outputFiles = fileSystem.globStatus(outputPath.suffix("/myavro3-*"));
Assert.assertEquals(1, outputFiles.length);
DataFileReader<TextStats> reader = new DataFileReader<TextStats>(
new FsInput(outputFiles[0].getPath(), job.getConfiguration()),
new SpecificDatumReader<TextStats>());
Map<String, Integer> counts = new HashMap<String, Integer>();