ls.inferRecordFormat(localFS, new Path(inputData.getCanonicalPath()), localFS, schemaFile, parseTreeFile, jsonDataFile, avroFile, false, lineCount);
// Test the inferred structure
// First, load in the avro file and see how many records there are.
int avroCount = 0;
DataFileReader in = new DataFileReader(new File(avroFile.toString()), new GenericDatumReader());
try {
Iterator it = in.iterator();
while (it.hasNext()) {
avroCount++;
it.next();