FileUtils.writeByteArrayToFile(indexFile, indexBytes);
final Path source = new Path(indexFile.getAbsolutePath());
CheckSum fileCheckSumGenerator = CheckSum.getInstance(CheckSumType.MD5);
fileCheckSumGenerator.update(indexBytes);
byte[] checksumCalculated = calculateCheckSumForFile(source);
HdfsFetcher fetcher = new HdfsFetcher();
Configuration config = new Configuration();