}
// sink does exist for event, create it.
LOG.info("Opening " + realpath);
w = new CustomDfsSink(realpath, format,null);
SinkCloseNotifier<EventSink, HiveDirCreatedNotification> notif =
new SinkCloseNotifier<EventSink, HiveDirCreatedNotification>(w) {
@Override
public HiveDirCreatedNotification getNotificationEvent() {
// take the dir part of the path