FLUME-2462. Remove use of deprecated methods in DatasetSink

(Ryan Blue via Hari)