You have to import org.apache.spark.rdd._, which will automatically make available this method.
Thanks, Ron Sent from my iPhone > On Aug 1, 2014, at 3:26 PM, touchdown <yut...@gmail.com> wrote: > > Hi, I am facing a similar dilemma. I am trying to aggregate a bunch of small > avro files into one avro file. I read it in with: > sc.newAPIHadoopFile[AvroKey[GenericRecord], NullWritable, > AvroKeyInputFormat[GenericRecord]](path) > > but I can't find saveAsHadoopFile or saveAsNewAPIHadoopFile. Can you please > tell us how it worked for you thanks! > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/Is-there-a-way-to-write-spark-RDD-to-Avro-files-tp10947p11219.html > Sent from the Apache Spark User List mailing list archive at Nabble.com.