Event e3 = new EventImpl(new byte[0], e1.getTimestamp() + 2 * day_millis,
Priority.INFO, 0, "localhost");
String path = "file://" + f + "/%Y-%m-%d/";
EventSink snk = new HiveNotifyingDfsSink(path, "file-%{host}", "hivetable",
new AvroJsonOutputFormat(), hfrh);
snk.open();
snk.append(e1);
snk.append(e2);
snk.append(e3);
snk.close();
// Simulate a roll by send the messages a second time sink using the same
// HiveNewDirNotification handlers.
// TODO (jon) fix this sink's open close has a problem. here just
// instantiating a new one
snk = new HiveNotifyingDfsSink(path, "file-%{host}", "hivetable",
new AvroJsonOutputFormat(), hfrh);
snk.open();
snk.append(e1);
snk.append(e2);
snk.append(e3);
snk.close();