FLUME-2462. Remove use of deprecated methods in DatasetSink

(Ryan Blue via Hari)
Merge remote-tracking branch 'remotes/origin/trunk' into trunk