@Override public void setLocation(final String location, final Job job) throws IOException { FileInputFormat.setInputPaths(job, location); if (schema == null) { schema = getInputAvroSchema(); if (schema == null) { schema = getAvroSchema(location, job); if (schema == null) { throw new IOException( "Could not determine avro schema for location " + location); } setInputAvroSchema(schema); } } }