we still need to control the overwrite flag in NewAPIHadoopFile

newAPI in JavaPairRDD

newAPIHadoopFile

use outputFormatClass to get output format instance