In Spark, you can use saveAsNewAPIHadoopFile and set the mapreduce.output.basename parameter in hadoop configuration to change the prefix (only the "part" prefix)
val hadoopConf = new Configuration()
hadoopConf.set("mapreduce.output.basename", "yourPrefix")
yourRDD.map(str => (null, str))
.saveAsNewAPIHadoopFile(s"$outputPath/$dirName", classOf[NullWritable], classOf[String],
classOf[TextOutputFormat[NullWritable, String]], hadoopConf)
: yourPrefix-r-00001
hadoop Spark , (hadoop) (). , .
, TextOutputFormat FileOutputFormat getUniqueFile. p >