we still need to control the overwrite flag in NewAPIHadoopFile