ReaderWriterProfiler.setProfilerOptions(configuration);
RecordReader recordReader;
try {
FileSystem fileSystem = path.getFileSystem(configuration);
Reader reader = OrcFile.createReader(fileSystem, path, new JobConf(configuration));
boolean[] include = findIncludedColumns(reader.getTypes(), columns);
recordReader = reader.rows(start, length, include);
}
catch (Exception e) {
throw Throwables.propagate(e);
}