MemorySinkSource mem = FlumeBenchmarkHarness.synthInMem();
b.mark("disk_loaded");
File tmp = File.createTempFile("test", "tmp");
tmp.deleteOnExit();
SeqfileEventSink sink = new SeqfileEventSink(tmp);
sink.open();
b.mark("localdisk_write_started");
EventUtil.dumpAll(mem, sink);
b.mark("local_disk_write done");
sink.close();
FlumeConfiguration conf = FlumeConfiguration.get();
Path src = new Path(tmp.getAbsolutePath());
Path dst = new Path("hdfs://localhost/testfile");
FileSystem hdfs = dst.getFileSystem(conf);