split.write(out);
out.close();
String[] locations = split.getLocations();
SplitMetaInfo info = null;
info = new JobSplit.SplitMetaInfo(locations, offset, split.getLength());
Path jobSplitMetaInfoFile = new Path(
conf.get(MRFrameworkConfigs.TASK_LOCAL_RESOURCE_DIR),
MRJobConfig.JOB_SPLIT_METAINFO);
FSDataOutputStream outMeta = FileSystem.create(fs, jobSplitMetaInfoFile,
new FsPermission(JOB_FILE_PERMISSION));
outMeta.write(SplitMetaInfoReaderTez.META_SPLIT_FILE_HEADER);
WritableUtils.writeVInt(outMeta, SplitMetaInfoReaderTez.META_SPLIT_VERSION);
WritableUtils.writeVInt(outMeta, 1); // Only 1 split meta info being written
info.write(outMeta);
outMeta.close();
}