HadoopDataSink works both for hadoop 1.2.1 and 2.2.0