HadoopDataSink works both for hadoop 1.2.1 and 2.2.0

issue: #455
Need to delete temporary output folder when job finishes.