private FSDataInputStream fileIn = null;
private static InterSedes sedes = InterSedesFactory.getInterSedesInstance();
public void initialize(InputSplit genericSplit, TaskAttemptContext context)
throws IOException {
FileSplit split = (FileSplit) genericSplit;
Configuration job = context.getConfiguration();
start = split.getStart();
end = start + split.getLength();
final Path file = split.getPath();
// open the file and seek to the start of the split
FileSystem fs = file.getFileSystem(job);
fileIn = fs.open(split.getPath());
reader = new Reader(fileIn, fs.getFileStatus(file).getLen(), job);
scanner = reader.createScannerByByteRange(start, split.getLength());
}