"file" can be a directory (look at all children) or even a glob
("/path/*.ext", for example).On Fri, Jul 31, 2015 at 11:35 AM, swetha <[email protected]> wrote: > Hi, > > How to add multiple sequence files from HDFS to a Spark Context to do Batch > processing? I have something like the following in my code. Do I have to > add > Comma separated list of Sequence file paths to the Spark Context. > > val data = if(args.length>0 && args(0)!=null) > sc.sequenceFile(file, classOf[LongWritable], classOf[Text]). > map{case (x, y) => (x.toString, y.toString)} > > Thanks, > Swetha > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/How-to-add-multiple-sequence-files-from-HDFS-to-a-Spark-Context-to-do-Batch-processing-tp24102.html > Sent from the Apache Spark User List mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Marcelo
