title: How to read multiple text files into a single RDD?
body: <p>I want to read a bunch of text files from a hdfs location and perform mapping on it in an iteration using spark.</p>
  
  <p><code>JavaRDD&lt;String&gt; records = ctx.textFile(args[1], 1);</code> is capable of reading only one file at a time.</p>
  
  <p>I want to read more than one file and process them as a single RDD. How? </p>