RDD.
saveAsNewAPIHadoopDataset
Output a Python RDD of key-value pairs (of form RDD[(K, V)]) to any Hadoop file system, using the new Hadoop OutputFormat API (mapreduce package). Keys/values are converted for output using either user specified converters or, by default, “org.apache.spark.api.python.JavaToWritableConverter”.
RDD[(K, V)]
Hadoop job configuration
fully qualified classname of key converter (None by default)
fully qualified classname of value converter (None by default)