public void testDirectWrite() throws IOException, InterruptedException {
Benchmark b = new Benchmark("hdfs seqfile write");
b.mark("begin");
TextFileSource txt = new TextFileSource(HADOOP_DATA[0]);
txt.open();
MemorySinkSource mem = new MemorySinkSource();
mem.open();
EventUtil.dumpAll(txt, mem);
txt.close();
b.mark("disk_loaded");
FlumeConfiguration conf = FlumeConfiguration.get();
Path path = new Path("hdfs://localhost/testfile");
FileSystem hdfs = path.getFileSystem(conf);