Path historyFilePath = new Path (historyDir.toString(), historyFileName);
RawLocalFileSystem fs = (RawLocalFileSystem)
FileSystem.getLocal(conf).getRaw();
FSDataOutputStream out = fs.create(historyFilePath, true);
byte[] corruptData = new byte[32];
new Random().nextBytes(corruptData);
out.write (corruptData, 0, 32);
out.close();