public void testFile() throws Exception {
run("test.txt");
}
private void run(String filename) throws FileNotFoundException, IOException{
File snappyFile = new File(inputDir, filename + new SnappyCodec().getDefaultExtension());
Configuration conf = new Configuration();
CompressionCodec codec = (CompressionCodec) ReflectionUtils.newInstance(
SnappyCodec.class, conf);
// Compress